PDA

View Full Version : Entity angle stabilization?



Nero
10-04-2016, 10:53 AM
Sorry for spamming the forum with such silly questions ^^;

I have a custom weapon that launches a contact grenade, it then changes the model of said grenade to a custom model:

g_EntityFuncs.SetModel( pGrenade, RG6_MODEL_CLIP );

This causes the grenade model to spin around in every direction, and no matter what I do to try to set its angles it's still spinning. :banghead:

wat do? D:

Sniper
10-04-2016, 10:56 AM
Grenades have an angular velocity applied to make them "spin" in the air like a football.

You should be able to set the avelocity to 0 for the x, y, and z axis.

Nero
10-04-2016, 12:03 PM
Oooohhhhhh, that did it. Thank you! :D