^7assignment to world.velocity_z (field 18) in server
^7s25542: ^5IFNOT GLOBAL20835, statement 25550
^7s25543: ^6FIELD_S other (=entity 2), classname (=.classname), GLOBAL20836
^7s25544: ^2EQ_S GLOBAL20836, IMMEDIATE (=player), GLOBAL20837
^7s25545: ^5IFNOT GLOBAL20837, statement 25550
^7s25546: ^1ADDRESS trace_ent (=entity 0), velocity_z (=.velocity_z), GLOBAL20838
^7s25547: ^6FIELD_F trace_ent (=entity 0), velocity_z (=.velocity_z), GLOBAL20839
^7s25548: ADD_F GLOBAL20839, IMMEDIATE (=400), GLOBAL20840
^7s25549: ^1STOREP_F GLOBAL20840, GLOBAL20838
^7 weapons.qc : LightningDamage : statement 49
^7 weapons.qc : W_FireLightning : statement 46
^7 player.qc : player_light1 : statement 20
^7 weapons.qc : W_Attack : statement 93
^7 weapons.qc : W_WeaponFrame : statement 8
^7 client.qc : PlayerPostThink : statement 32
Code: Select all
if (trace_ent.takedamage)
{
particle (trace_endpos, '0 0 100', 225, (damage * 4));
T_Damage (trace_ent, from, from, damage);
if (self.classname == "player")
{
if (other.classname == "player")
trace_ent.velocity_z = (trace_ent.velocity_z + 400);
}
}