Velocity and DLLFunc_Spawn, creating entity
dllfunc( DLLFunc_Spawn, sprite_ent ) and setting Velocity cause a bug in server, the entity is thrown from player to aim direction and when I don't use dllfunc( DLLFunc_Spawn, sprite_ent ) , it throws normally as it must.
So why it is buggy with setting Velocity? It something like it goes only 1/4 of his direction and just stops... PHP Code:
|
Re: Velocity and DLLFunc_Spawn, creating entity
Since you're already using Engine, use DispatchSpawn() to spawn entity.
|
Re: Velocity and DLLFunc_Spawn, creating entity
That doesn't correct my bug :/
|
Re: Velocity and DLLFunc_Spawn, creating entity
MOVETYPE_BOUNCE
|
Re: Velocity and DLLFunc_Spawn, creating entity
I don't need bounce and it not solved my problem, look at the code.
When DispatchSpawn(sprite_ent); after PHP Code:
When DispatchSpawn(sprite_ent); before PHP Code:
When I delete DispatchSpawn(sprite_ent); , all works, but no ANIMATION of sprite playing. |
Re: Velocity and DLLFunc_Spawn, creating entity
PHP Code:
|
Re: Velocity and DLLFunc_Spawn, creating entity
Quote:
|
Re: Velocity and DLLFunc_Spawn, creating entity
hlsdk
|
Re: Velocity and DLLFunc_Spawn, creating entity
http://svn.tcwonline.org/viewvc.cgi/...p&root=amxmodx
Code:
It's very useful so see how en entity is handle ; so you can adapt your code. Download the HLSDK. |
| All times are GMT -4. The time now is 22:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.