Quake Style - Quake 3
Tutorials Newbie Tutorials - Bouncing Plasma! Changes the plasma so it
bounces around after hitting solid objects.
Bouncing
plasma!
This short tutorial shows you how to change the movement of the
plasma gun so the little plasma balls bounce around.
Open up g_missile.c
and go to around line 259 in the fire_plasma function and add the following line
of code:
bolt->s.eFlags = EF_BOUNCE;
This will make the plasma balls bounce against walls instead of
exploding. You could also change EF_BOUNCE to EF_BOUNCE_HALF and make it bounce
like grenades.
-- Important: If you do use something from QuakeStyle in your mod, please
give us credit. Our code is copyrighted, but we give permission
to everyone to use it in any way they see fit, as long as we are recognized.