set weaponanim by entity
I'm trying to show holster animation but the animation Doesn't play
Code:
#include <amxmodx> |
Re: set weaponanim by entity
try this stock:
PHP Code:
|
Re: set weaponanim by entity
Arent the codes just the same?
|
Re: set weaponanim by entity
he have: "message_begin(MSG_ONE, SVC_WEAPONANIM, _, ent)"
while that i used and tested and it works have : "message_begin(MSG_ONE_UNRELIABLE, SVC_WEAPONANIM, .player = pPlayer)" |
Re: set weaponanim by entity
Is still not works, your stock using player index, but ham_item_holster just have entity index.
EDIT: actualy it works but still incorrect, I'm just did not realize it. It's making deploy animation replaced. I think I must block player think to change weapon until the animation finish. |
Re: set weaponanim by entity
A right stock is something like that : https://forums.alliedmods.net/showpo...7&postcount=26
|
Re: set weaponanim by entity
until now, I have changed the codes many times and decided not to use ham_item_holster and ham_item_deploy because is not called when player use quick change to last weapon used button. This is my current code:
PHP Code:
Quote:
|
Re: set weaponanim by entity
If 0, it will retrieve value automatically.
|
Re: set weaponanim by entity
AFAIK proper weapon holster system was never implemented in Half-Life.
|
Re: set weaponanim by entity
I found some function in half-life source code. Did this can be modified by fakemeta or something?
in weapons.cpp: PHP Code:
PHP Code:
Quote:
|
| All times are GMT -4. The time now is 09:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.