need help with some perks and some health
#1
Hi im having problem with giving a certain team more health but I need a code and what to do with it can someone help me and I need a code for hardened pro. thanks
[Image: 2nbvtyo.jpg]

#2
this might help xD http://www.itsmods.com/forum/Thread-All-...DVARS.html

#3
(04-08-2011, 01:12)rotceh_dnih Wrote: this might help xD http://www.itsmods.com/forum/Thread-All-...DVARS.html

But what about health? and in the dvars I saw that there was the gold camo's where do I put code for camo for a pistol or will it not work for that?
[Image: 2nbvtyo.jpg]

#4
ill get back to you on the health i've not looked in to it myself but the Gold camo is called like this calcWeaponOptions(15,0,0,0,0)); 15 being the gold camo
here's a example of giveing a cold crossbow
Code:
self giveWeapon ( "crossbow_explosive_mp", 0, self calcWeaponOptions(15,0,0,0,0));
edit : and heres how to set health, in example i set health to 200 "dubble"
Code:
self.maxhealth = 200; self.health = 200;

#5
(04-08-2011, 01:44)rotceh_dnih Wrote: ill get back to you on the health i've not looked in to it myself but the Gold camo is called like this calcWeaponOptions(15,0,0,0,0)); 15 being the gold camo
here's a example of giveing a cold crossbow
Code:
self giveWeapon ( "crossbow_explosive_mp", 0, self calcWeaponOptions(15,0,0,0,0));
edit : and heres how to set health, in example i set health to 200 "dubble"
Code:
self.maxhealth = 200; self.health = 200;

O so you can add that to any weapon.
(04-08-2011, 01:44)rotceh_dnih Wrote: ill get back to you on the health i've not looked in to it myself but the Gold camo is called like this calcWeaponOptions(15,0,0,0,0)); 15 being the gold camo
here's a example of giveing a cold crossbow
Code:
self giveWeapon ( "crossbow_explosive_mp", 0, self calcWeaponOptions(15,0,0,0,0));
edit : and heres how to set health, in example i set health to 200 "dubble"
Code:
self.maxhealth = 200; self.health = 200;

For the self max health how would it look for say a just random mod where would it go?
[Image: 2nbvtyo.jpg]

#6
to your first qusition yes i think all guns can have gold camo, so just swap out the gun
now the health would go in with your loadout ie onplayerspawned have a loadout(); like this
Code:
onPlayerSpawned() { self endon("disconnect"); for(;;) { self waittill("spawned_player"); self thread loadout();
then the function at the bottom
Code:
loadout() { self Takeallweapons(); self giveWeapon ( "Python_Speed_mp", 0, false ); // your guns whatever self giveWeapon ( "crossbow_explosive_mp", 0, self calcWeaponOptions(15,0,0,0,0)); self giveWeapon ( "knife_mp", 0, false ); self giveWeapon ( "willy_pete_mp", 0, false ); self giveWeapon ( "frag_grenade_mp", 0, false ); self switchToWeapon( "Python_Speed_mp" ); self clearPerks(); self setPerk("specialty_bulletaccuracy"); self setPerk("specialty_sprintrecovery"); self setPerk("specialty_bulletpenetration"); // your perks self setPerk("specialty_fastreload"); self setPerk("specialty_fastads"); self setPerk("specialty_fallheight"); self.maxhealth = 200; self.health = 200; // HEALTH XD !!!! }

#7
(04-08-2011, 02:03)rotceh_dnih Wrote: to your first qusition yes i think all guns can have gold camo,
now the health would go in with your loadout ie onplayerspawned have a loadout(); like this
Code:
onPlayerSpawned() { self endon("disconnect"); for(;;) { self waittill("spawned_player"); self thread loadout();
then the function at the bottom
Code:
loadout() { self Takeallweapons(); self giveWeapon ( "Python_Speed_mp", 0, false ); // your guns whatever self giveWeapon ( "crossbow_explosive_mp", 0, self calcWeaponOptions(15,0,0,0,0)); self giveWeapon ( "knife_mp", 0, false ); self giveWeapon ( "willy_pete_mp", 0, false ); self giveWeapon ( "frag_grenade_mp", 0, false ); self switchToWeapon( "Python_Speed_mp" ); self clearPerks(); self setPerk("specialty_bulletaccuracy"); self setPerk("specialty_sprintrecovery"); self setPerk("specialty_bulletpenetration"); // your perks self setPerk("specialty_fastreload"); self setPerk("specialty_fastads"); self setPerk("specialty_fallheight"); self.maxhealth = 200; self.health = 200; // HEALTH XD !!!! }

ahhhh ok thx whats your steam?
[Image: 2nbvtyo.jpg]

#8
check your PM xD

#9
Use some simple zombie mod and put your code into that, for example presidents would be humans and secret service zombies Wink
[Image: lQDUjba.jpg]



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] Health and Points on hud source robinvm 7 8,275 10-27-2013, 08:23
Last Post: robinvm
Brick [Release] Health on HUD (no crash :D) xtreme2010 3 8,638 04-21-2013, 00:20
Last Post: CHRISLUVMSR
  Help Perks do not work (( x1412 6 6,319 04-06-2013, 18:09
Last Post: x1412
  Health,regenerate, and message changes help mbakerinnv 4 4,964 11-02-2012, 18:12
Last Post: mbakerinnv
  Health and damage and custom comments mbakerinnv 1 3,002 11-01-2012, 15:09
Last Post: d0h!
  [Release] Health Icon (By Yamato) Rendflex 25 19,120 10-12-2012, 14:04
Last Post: momo5502
  All Level and Perks Pro Unlocker browneggs 1 3,839 09-24-2012, 09:38
Last Post: d0h!
  Below 30% Max Health plugin worldclass 5 4,921 09-12-2012, 21:25
Last Post: worldclass
  [Release] Obtain weapons and perks ddaavvee 10 11,063 09-02-2012, 21:04
Last Post: wise
  Perks Killer_xD 6 5,630 08-13-2012, 15:26
Last Post: Killer_xD

Forum Jump:


Users browsing this thread:
3 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.