Need slowmotion Codes for te_spritetrail
Need slowmotion Codes for te_spritetrail i mean when some one buy usp i have added that i spawn sprite but i want them to be in slowmotion mean it float when it spawn but it come slow on floor
|
Re: Need slowmotion Codes for te_spritetrail
I see 2 ways.
way 1: Change server gravity to low, lets say from 800 to 100 and then loop all players and set their pev_gravity from 1.0 to 8.0 Temp entities seems to follow server gravity so it should affect te_spritetrail way 2: create entities and make them float |
Re: Need slowmotion Codes for te_spritetrail
but how
|
Re: Need slowmotion Codes for te_spritetrail
Quote:
|
Re: Need slowmotion Codes for te_spritetrail
setting gravity:
PHP Code:
PHP Code:
|
Re: Need slowmotion Codes for te_spritetrail
Quote:
edit:: much better |
Re: Need slowmotion Codes for te_spritetrail
Quote:
new method (only this thing is needed) [ thanks @meTaLiCroSS ] ( this should only affect temp entities, weapon thrown should be same ) PHP Code:
PHP Code:
|
Re: Need slowmotion Codes for te_spritetrail
8.0 means more acceleration than 1.0.
Change it to something lower, like 0.125 (if you want 100 gravity). |
Re: Need slowmotion Codes for te_spritetrail
This is not going to work properly as a check between mp_ cvars and movevars values is done at each frame, and if a change is dectected, a new message is sent. You need to hook when a change is detected and blocking this call, then sending your custiom message. Something like that: https://forums.alliedmods.net/showpo...2&postcount=50.
|
| All times are GMT -4. The time now is 09:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.