AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   First person created weapons (https://forums.alliedmods.net/showthread.php?t=53694)

DiscoBBQ 04-09-2007 08:22

First person created weapons
 
Can anyone help me if I like,
say your in cs and you remove all weapons your stripped right
than you,

entity_set_string(id, EV_SZ_viewmodel, "models/v_melee.mdl")

is there any line of code that could trigger it to run a specific animation such as
entity_set_int(ent,EV_INT_sequence,3);
ent being the model that is being viewed
?

Dark Kingdom 04-09-2007 17:17

Re: First person created weapons
 
PHP Code:

entity_set_float(ent,EV_FL_animtime,2.0)
    
entity_set_float(ent,EV_FL_framerate,1.0)
    
entity_set_int(ent,EV_INT_sequence,0); 

Would give it some ammination.


All times are GMT -4. The time now is 06:39.

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