AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Weapon Sub-Skin Possible? (https://forums.alliedmods.net/showthread.php?t=249882)

Jhob94 10-13-2014 17:19

Weapon Sub-Skin Possible?
 
Well it is possible to make sub-models in only 1 model and use pev_body/pev_skin to change them and save a lot of resources. I know this is possible with players models but is it possible with weapon models?

I thought about change weapon pev since it is an entity like players. Something like this:
PHP Code:

public plugin_init() 
{
    
RegisterHam(Ham_Item_Deploy"weapon_knife""ham_ItemDeploy_Knife"1)
}

public 
ham_ItemDeploy_Knife(weapon_ent)
{
    
set_pev(weapon_entpev_skinskinnum)


I think this could be something very useful for a lot of people, specially zp/sh servers that requires many models and with valve limit after last year updates, there are a lot of crashes.

I can't test it myself cuz i dont have and i dont know how to make sub-models in weapon models :grrr:

But does someone knows if it would work? Or some other way to make this possible?

Natsheh 10-13-2014 17:33

Re: Weapon Sub-Skin Possible?
 
Well it is possible but no different

RateX 10-13-2014 19:20

Re: Weapon Sub-Skin Possible?
 
What model do you want exactly, the v_ or p_?
If p_, completely possible.
If v_, possible but extremly buggy due to cs handles animations both server and client side->not recommend


All times are GMT -4. The time now is 17:32.

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