projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e88d2b
)
Call the explosion mutator hook before setting new owner, so the old owner may be...
author
Mario <mario@smbclan.net>
Sun, 20 Aug 2017 07:31:56 +0000
(17:31 +1000)
committer
Mario <mario@smbclan.net>
Sun, 20 Aug 2017 07:31:56 +0000
(17:31 +1000)
qcsrc/server/weapons/common.qc
patch
|
blob
|
history
diff --git
a/qcsrc/server/weapons/common.qc
b/qcsrc/server/weapons/common.qc
index b94b2533f3441a1e5955a13f54214b142e94a398..f69faa03a324de3e93d3136610a2835d9bbc781e 100644
(file)
--- a/
qcsrc/server/weapons/common.qc
+++ b/
qcsrc/server/weapons/common.qc
@@
-84,14
+84,14
@@
void W_PrepareExplosionByDamage(entity this, entity attacker, void(entity this)
this.takedamage = DAMAGE_NO;
this.event_damage = func_null;
+ MUTATOR_CALLHOOK(PrepareExplosionByDamage, this, attacker);
+
if(IS_CLIENT(attacker) && !autocvar_g_projectiles_keep_owner)
{
this.owner = attacker;
this.realowner = attacker;
}
- MUTATOR_CALLHOOK(PrepareExplosionByDamage, this, attacker);
-
// do not explode NOW but in the NEXT FRAME!
// because recursive calls to RadiusDamage are not allowed
this.nextthink = time;