Create an entity and make it spin
How would I go about making an entity spin in a randomized direction after I spawn it? I understand the direction and velocity parts, etc, I just need to know how to do the spin part. I have played around with the "angles" with TeleportEntity, but it doesn't seem to do what I am needing.
Just think if something exploded how the pieces go it random directions and spin - that's what I am after. PHP Code:
|
Re: Create an entity and make it spin
PHP Code:
|
Re: Create an entity and make it spin
Source Hacks incoming!
PHP Code:
|
Re: Create an entity and make it spin
Thanks for the replies. Unfortunately, this isn't not exactly what I was after...I am not looking to simply rotate a prop, but actually cause it to spin through the air. Using a func_rotating is just not feasible and I want to do this without any hacky calls.
A good example of what I am experiencing: - Create a prop - Spawn it in the air - It stays in the same position *until* it hits the ground - Once it hits the ground, the game physics engine itself causes the spin - I need to make that spin happen right after spawning (in the air) I am able to get it to spin in the air if the prop is damaged (using a point_hurt to damage it after spawning)...however this is creating other problems and is quite hacky as well and probably not necessary. All I am after is to get that prop_physics spinning before it hits the ground. This thread seems to depict precisely what I am after, but I cannot get it to work with TF2/HL2DM since 'm_vecAngVelocity' is not found in 'prop_physics' https://forums.alliedmods.net/showthread.php?t=233554 Thanks again all |
All times are GMT -4. The time now is 04:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.