Raised This Month: $ Target: $400
 0% 

[SEARCH] V weapon model on center.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 11-14-2014 , 02:14   [SEARCH] V weapon model on center.
Reply With Quote #1

Hi. Help me to find plugin which change pev_viewmodel2 position for player.
I see weapons fixed on display center.
FromTheFuture is offline
bardukis
Member
Join Date: Jul 2014
Old 11-14-2014 , 05:17   Re: [SEARCH] V weapon model on center.
Reply With Quote #2

Maybe something like this?

Spoiler


PHP Code:
#include <amxmodx> 
#include <fakemeta>  
#include <hamsandwich>  

new const weapon_model[] = { "models/weapon_name.mdl" 

const 
XO_CBASEPLAYERITEM 
const m_pPlayer 41 

new g_iMaxPlayers  
#define IsPlayer(%0)    ( 1 <= (%0) <= g_iMaxPlayers )  

public plugin_precache()  

    
engfunc(EngFunc_PrecacheModelweapon_model


public 
plugin_init()  

    
RegisterHam(Ham_Item_Deploy"weapon_hegrenade""OnCWeapon_Deploy_Post"true)  
         
    
g_iMaxPlayers get_maxplayers()  
}  

public 
OnCWeapon_Deploy_Post(iWeapon)  
{  
    new 
id get_pdata_cbase(iWeaponm_pPlayerXO_CBASEPLAYERITEM)   
    if( 
IsPlayer(id) )   
    {     
        
set_pev(idpev_viewmodel2weapon_model)  
    }   


Last edited by bardukis; 11-14-2014 at 05:18.
bardukis is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 11-14-2014 , 05:22   Re: [SEARCH] V weapon model on center.
Reply With Quote #3

Give more details of what you need.
__________________
Jhob94 is offline
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 11-14-2014 , 05:38   Re: [SEARCH] V weapon model on center.
Reply With Quote #4

bardukis, Thank U, but i need different.
I want to CHANGE player weapon ORIGIN to CENTER from right/left position.
FromTheFuture is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 11-14-2014 , 06:49   Re: [SEARCH] V weapon model on center.
Reply With Quote #5

you are talking about p_ or v_? p_ might be possible. But v_ i dont think so, the model is set to the client. You must edit the model, a plugin wont do it.
__________________
Jhob94 is offline
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 11-14-2014 , 07:40   Re: [SEARCH] V weapon model on center.
Reply With Quote #6

Quote:
Originally Posted by Jhob94 View Post
you are talking about p_ or v_? p_ might be possible. But v_ i dont think so, the model is set to the client. You must edit the model, a plugin wont do it.
Of course I'm talking about V model (see title).
Some years ago I've see server with this, but don't remember about some model precache.
FromTheFuture is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 11-14-2014 , 09:04   Re: [SEARCH] V weapon model on center.
Reply With Quote #7

You must edit the model, i dont think it is possible to do it with amxx.
__________________
Jhob94 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 16:40.


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