AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Models for hand (https://forums.alliedmods.net/showthread.php?t=105008)

Alucard^ 09-30-2009 05:19

Models for hand
 
Well, i have this question:

When you don't have a weapon (without knife too) you don't see the hands... so, is posible to add a model to the hands? is posible to set a model when you don't have weapons, when you don't have nothing? Or the only thing that i can do, is give a knife and set the model?

Thx and sry for my english.

Arkshine 09-30-2009 05:41

Re: Models for hand
 
Try and you will see.

Alucard^ 09-30-2009 18:15

Re: Models for hand
 
Yes but how can i try... if i don't have any weapon to replace the model? But maybe exist another method to do this... a method to have a "fake" weapon.

izzle 09-30-2009 18:22

Re: Models for hand
 
I think you can like in hns the terrorists have no weapons but it shows up with a knife model

Sylwester 09-30-2009 18:33

Re: Models for hand
 
You don't need to have fake weapon.
Just set models:
PHP Code:

#include <amxmodx>
#include <engine>
#include <fun>

public plugin_init(){
    
register_event("CurWeapon","strip_weaps","be","1=1")
    
register_clcmd("test""test")
}

public 
test(id){
    
entity_set_string(idEV_SZ_viewmodel"models/v_knife.mdl")
    
entity_set_string(idEV_SZ_weaponmodel"models/p_knife.mdl")
}

public 
strip_weaps(id){
    
strip_user_weapons(id)



Alucard^ 10-01-2009 06:18

Re: Models for hand
 
Thx Sylwester, work perfect.

xbatista 10-01-2009 08:43

Re: Models for hand
 
Don't
PHP Code:

strip_user_weapons 

on CurWeapon event ,it may sometimes crash you server!

hleV 10-01-2009 10:15

Re: Models for hand
 
CurWeapon shouldn't be called a lot since your weapons are already stripped.

Sylwester 10-01-2009 11:05

Re: Models for hand
 
I just needed it to quickly get rid of weapons (including bots buying weapons), so I could test setting models and see if it works.
In fact my listen server crashed once but that doesn't matter, because it happened after I got my results :P

Alucard^ 10-01-2009 18:26

Re: Models for hand
 
No problem, i didn't use the strip part of the code.


All times are GMT -4. The time now is 22:34.

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