AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Forcing animation on a player (https://forums.alliedmods.net/showthread.php?t=45896)

commonbullet 10-14-2006 00:32

Forcing animation on a player
 
I'm trying to force a player to make a sequence/animation. I've tried to hook client prethink forward (fakemeta), and change pev_sequence, pev_frame values. It doesn't seem to work (no effect). The prethink function would be something like that.
Code:
public client_prethink(id) {     if(id == g_target) {         if(is_user_alive(id) && g_frame < 20.0) {             set_pev(id, pev_sequence, 103)             set_pev(id, pev_frame, g_frame)             g_frame += 1.0             return FMRES_SUPERCEDE         }         else {             g_target = 0             g_frame = 0.0         }     }     return FMRES_IGNORED }

EDIT: Maybe I can't treat a player like a 'cycler_sprite' entity, but I couldn't guess any other way to make it. :stupid:

organizedKaoS 10-14-2006 01:11

Re: Forcing animation on a player
 
You could try looking at the gabenmod sma for gaben_soldier i believe.

I remember seeing an animation function in there for the bazooka.

Maybe that will help you in the right direction.

XxAvalanchexX 10-14-2006 01:15

Re: Forcing animation on a player
 
http://forums.alliedmods.net/showthread.php?t=45757

commonbullet 10-14-2006 09:09

Re: Forcing animation on a player
 
Thank you.


All times are GMT -4. The time now is 04:58.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.