1
Modification Help / Re: Weapon doesn't do any radius damage
« on: November 02, 2017, 08:31:38 PM »depends on the function its in, cause the parameters may be different.Hm, okay. It occurs to me, though, that the Frag Grenade's shrapnel function involves a lot of stuff specific to that weapon- plus, it calls onExplode.
sourceClient:
if %obj is a player object, then its %obj.client
if %obj is a projectile, then its %obj.sourceClient
if %obj is a client, then its %obj (duh)
sourceObject:
if %obj is a player object, then its %obj (duh)
if %obj is a projectile, then its %obj.sourceObject
if %obj is a client, then its %obj.player
we need the relevant oncollision code to comment on this better
I don't really know how to write functions, nor how to make it just spawn a projectile at the impact point/explosion center. How would I call a function for bounce explosions? onBounce? onBounceExplode? onCollision?
The function itself would start with
Code: [Select]
function DemonFireballWandProjectile::onWhatever
, by the way.