Some patches ago I was able to modify Rocket's damage and radius this way:
Unfortunatly this no longers works because my variable expl is now NULL. Guess something in the game's code changed. Also couldn't find anything else that lets me modify the damage/radius in that hook.Code:void OnRocketLaunched(BasePlayer player, BaseEntity entity) { var expl = entity as TimedExplosive; if (!expl) return; //Modify radius expl.explosionRadius *= X; //Modify damage foreach (var damage in expl.damageTypes) damage.amount *= X }
Does anyone know a workaround for that? I want to modify especially Rocket damage, not explosive damage overall (c4 etc).
Any way to modify the damage/radius of Rockets?
Discussion in 'Rust Development' started by recon, Dec 12, 2015.
-
Wulf Community Admin
The hook actually needs a change, as it is currently using the wrong 2nd parameter. It should work after we push a fix for it.
-
Oh well, thought I couldn't expect a fix for that according to the Github issue I made.
Thanks a lot
-
Wulf Community Admin
Well, a couple team members found the issue.
