Careful!
Both of your functions for Push and Pull are named void Cmd_Push_f (edict_t *ent), you just changed the VectorScale value.
error C2084: function 'void __cdecl Cmd_Push_f(struct edict_s *)' already has a body
And, no, your laser code does not work:
tr = gi.trace (from, NULL, NULL, end, self, MASK_SHOT);
error C2065: 'from' : undeclared identifier
error C2065: 'self' : undeclared identifier
error C2109: subscript requires array or pointer type
error C2198: 'gi' : too few actual parameters
As for the ammo requirment:
error C2113: pointer can only be subtracted from another pointer.
So, if you don't add any of the additional modifications, the Push/Pull functions work fine.
farbin
farbin
robert joined
This member has provided no bio about themself...