PDA

View Full Version : granade skin help


bumboy16
10-03-2004, 01:32
How do u make it so when u throw a nade it changes to a different skin

MTS Steel DrAgoN
10-03-2004, 03:19
w_grenade?
the World Viw Of The Skin...

bumboy16
10-03-2004, 05:35
ya wats the code to change tht

thx :lol:

MTS Steel DrAgoN
10-03-2004, 11:51
np 8)

you need the w_grenade skin...not a code a skin

bumboy16
10-03-2004, 12:44
ya i no u need tht but wat do u put in the hero to change the w_granade?
LIke this is how u change the v_granade
public model_he(id) {
if ( !is_user_alive(id) ) return PLUGIN_CONTINUE
// Weapon Model change thanks to [CCC]Taz-Devil
Entvars_Set_String(id, EV_SZ_viewmodel, "models/bowser/v_hegrenade_r.mdl")
Entvars_Set_String(id, EV_SZ_viewmodel, "models/bowser/v_hegrenade.mdl")
new iCurrent
iCurrent = FindEntity(-1,"weapon_hegrenade")
while(iCurrent != -1) {
iCurrent = FindEntity(iCurrent,"weapon_hegrenade")
}
return PLUGIN_HANDLED
}
//----------------------------------------------------------------------------------------------

vittu
10-03-2004, 21:46
remove: new iCurrent
iCurrent = FindEntity(-1,"weapon_hegrenade")
while(iCurrent != -1) {
iCurrent = FindEntity(iCurrent,"weapon_hegrenade")
your not using it...

bumboy16
10-03-2004, 22:21
ya thts the code to change the v_granade wats the code to change the w_granade?

MTS Steel DrAgoN
10-03-2004, 22:39
But if you are a novice scripter....you would know.... :roll:

reaper
10-04-2004, 09:42
vittu i believe you need that code cuz even for amxx you need it but u change -1 to 0. im not 100 % sure but i think you need it

vittu
10-04-2004, 18:55
look at it it's doing nothing its checking for a weapon entity and does aboslutly nothing... it's not being used properly like I said...

It can be used but so far no hero uses it right, there is no point for it, it does a check and does nothing with the check. It checks for no reason, take it out.

remove the code, model still gets changed, no need to worry for amxx then.

reaper
10-04-2004, 19:06
ummm weaponx and warmachine both use it i believe

vittu
10-04-2004, 19:09
yes they are checking but the check has no point it doesnt do anything, hence no reason for it to be there....

all heros with model changes use it cause everyone copies from the hero that first did it cause they dont know how to make up code themselves...

warmachine doesnt have that code, look in every weapon model changing hero it has it and its not doing anything with it because of what i said above.