mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2025-02-21 11:31:03 +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
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Setup for Respawn
|
if (Goal.killtarget && Goal.killtarget == Goal.targetname) {
|
||||||
// Items and Triggers do their own respawn work
|
// self destructive trigger
|
||||||
if (Goal.classname == "info_tfgoal")
|
remove (Goal);
|
||||||
SetupRespawn(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