F
Flakk
Guest
My question is simple. What function deals with the grenade's movement through the air? As you all know, the original grenade "spins" somewhat when it flies. I'm trying to stop that, making it always fly pointy-edge first.
thx :stare:
edit: I've managed to kill the spinning by editing this, in weapon_smg1.cpp: (default values are ( -400, 400 )
pGrenade->SetLocalAngularVelocity( RandomAngle( 0, 0 ) );
But something is still forcing the grenade to always spawn with it's point to a fixed position. So if I'm facing one way on the map, the grenade will spawn with it's point towards me, and if I turn like 90 degrees, the point will aim at the same spot as before.
Hope you're following me :X
thx :stare:
edit: I've managed to kill the spinning by editing this, in weapon_smg1.cpp: (default values are ( -400, 400 )
pGrenade->SetLocalAngularVelocity( RandomAngle( 0, 0 ) );
But something is still forcing the grenade to always spawn with it's point to a fixed position. So if I'm facing one way on the map, the grenade will spawn with it's point towards me, and if I turn like 90 degrees, the point will aim at the same spot as before.
Hope you're following me :X