mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2024-11-10 07:11:51 +00:00
make self destructive goals work
This commit is contained in:
parent
66f50d2899
commit
fe8bce0861
1 changed files with 9 additions and 4 deletions
13
tfortmap.qc
13
tfortmap.qc
|
@ -2522,10 +2522,15 @@ void(entity Goal, entity AP, float addb) DoResults =
|
|||
#endif
|
||||
#endif
|
||||
|
||||
// Setup for Respawn
|
||||
// Items and Triggers do their own respawn work
|
||||
if (Goal.classname == "info_tfgoal")
|
||||
SetupRespawn(Goal);
|
||||
if (Goal.killtarget && Goal.killtarget == Goal.targetname) {
|
||||
// self destructive trigger
|
||||
remove (Goal);
|
||||
} else {
|
||||
// Setup for Respawn
|
||||
// Items and Triggers do their own respawn work
|
||||
if (Goal.classname == "info_tfgoal")
|
||||
SetupRespawn(Goal);
|
||||
}
|
||||
};
|
||||
|
||||
//=========================================================================
|
||||
|
|
Loading…
Reference in a new issue