Raised This Month: $51 Target: $400
 12% 

set_pev draw animation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
undead52
Senior Member
Join Date: Dec 2016
Old 11-20-2017 , 10:12   set_pev draw animation
Reply With Quote #1

i did a for skin menu but skins dont change until shoot or change weapon, how can i play draw animation ?
undead52 is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 11-20-2017 , 11:05   Re: set_pev draw animation
Reply With Quote #2

Skin doesnt change and you`re asking us how to play animation...
Show the code
__________________
retired chump
DjSoftero is offline
undead52
Senior Member
Join Date: Dec 2016
Old 11-20-2017 , 11:11   Re: set_pev draw animation
Reply With Quote #3

skin changes after changing weapons or shooting, i am using Event_CurWeapon but i want it when he choosed skin from menu wanna play draw animation

Last edited by undead52; 11-20-2017 at 11:12.
undead52 is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 11-20-2017 , 11:12   Re: set_pev draw animation
Reply With Quote #4

please show the code. mainly the menu handler
__________________
retired chump

Last edited by DjSoftero; 11-20-2017 at 11:13.
DjSoftero is offline
undead52
Senior Member
Join Date: Dec 2016
Old 11-20-2017 , 11:19   Re: set_pev draw animation
Reply With Quote #5

PHP Code:
public Menu_Handler(idMenuitem)
{
    
get_user_nameid szAuthID charsmaxszAuthID ) );
    new 
vault nvault_open"iSniperAWP" );
    if (
item == MENU_EXIT)
    {
        
menu_destroy(Menu)
        return 
PLUGIN_HANDLED
    
}
    
    new 
Data[6], Access
    
new Name[64], Callback
    menu_item_getinfo
(MenuitemAccessData5Name63Callback)
    
    new 
Key str_to_num(Data)
    
    switch (
Key)
    {
        case 
0:
        {
            
nvault_setvault szAuthID "Awp" );
            
nvault_closevault ); 


PHP Code:
public Event_CurWeapon(id
{  
    
get_user_nameid szAuthID charsmaxszAuthID ) );
    new 
vault nvault_open"iSniperAWP" );
    new 
silah2[64];
    
nvault_getvault szAuthID silah2 charsmaxsilah2 ) );  
        if (
equal(silah2"Awp"))
        {
        }
        else if (
equal(silah2"Intervention"))
        {
        if (
get_user_weapon(id) == CSW_AWP)
        {
            
set_pev(idpev_viewmodel2intervention)
        } 
undead52 is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 11-20-2017 , 11:23   Re: set_pev draw animation
Reply With Quote #6

you should incorporate
PHP Code:
set_pev(idpev_viewmodel2intervention
into your menu handler
__________________
retired chump
DjSoftero is offline
undead52
Senior Member
Join Date: Dec 2016
Old 11-20-2017 , 11:25   Re: set_pev draw animation
Reply With Quote #7

Ty, it worked but how to play draw animation too ? it change instantly
undead52 is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 11-20-2017 , 11:33   Re: set_pev draw animation
Reply With Quote #8

My guess would be, that another sequence is overlaping yours. I`m pretty sure it has been answered before, try searching
__________________
retired chump
DjSoftero is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 11-20-2017 , 12:56   Re: set_pev draw animation
Reply With Quote #9

hook ham item deploy post for that weapon type and set it there
then when you equip the weapon it will draw nicely
if you already have the weapon in hand are you are giving the same weapon, then you need to strip first or only the model will change (player won't get same weapon again so it won't deploy)
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.

Last edited by aron9forever; 11-20-2017 at 12:56.
aron9forever is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:59.


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