Skip to content

Commit

Permalink
work: re-tooling co-op spawn stuff, will get working later.
Browse files Browse the repository at this point in the history
  • Loading branch information
Subject9x committed Sep 22, 2023
1 parent a079986 commit aa1eeee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main/map/map_deploy_point.qc
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ void() coop_deploy_postconstruct={
}

self.owner = parent;
self.faction = parent.faction;

cacheGlobalString( self.iniConfig, strcat(self.group, ftos(self.coopClientId)) )

};
Expand All @@ -214,20 +216,18 @@ HOWEVER - for compatability, if a mapper needs to cast a co-op spawn point to a
.group(string) - bind to map_deploy_point_coop
-------SPAWNFLAGS-----
*/

void() map_deploy_point_coop={

if( !self.group || strlen(self.group) <= 0 ){
if( strlen(self.group) <= 0 ){
objerror(strcat("map_deploy_point_coop(", vtos(self.origin),") was missing groupId, unable to link to deploy point!\n"));
remove(self);
return;
}

self.solid = SOLID_NOT;
self.movetype = MOVETYPE_NONE;

if( !self.coopClientId ){
self.coopClientId = 1;
}


self.think = coop_deploy_postconstruct;
self.nextthink = time + 1;
Expand Down

0 comments on commit aa1eeee

Please sign in to comment.