Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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]
Reply

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

#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]
Reply

#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;
Reply

#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]
Reply

#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 !!!!

}
Reply

#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]
Reply

#8
check your PM xD
Reply

#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]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] Health and Points on hud source robinvm 7 5,538 10-27-2013, 08:23
Last Post: robinvm
Brick [Release] Health on HUD (no crash :D) xtreme2010 3 6,181 04-21-2013, 00:20
Last Post: CHRISLUVMSR
  Help Perks do not work (( x1412 6 4,337 04-06-2013, 18:09
Last Post: x1412
  [Release] Show player health on HUD [Z00MBY] Alex 18 13,293 02-03-2013, 00:48
Last Post: JariZ
  Health,regenerate, and message changes help mbakerinnv 4 3,408 11-02-2012, 18:12
Last Post: mbakerinnv
  Health and damage and custom comments mbakerinnv 1 1,987 11-01-2012, 15:09
Last Post: d0h!
  [Release] Health Icon (By Yamato) Rendflex 25 13,380 10-12-2012, 14:04
Last Post: momo5502
  All Level and Perks Pro Unlocker browneggs 1 2,678 09-24-2012, 09:38
Last Post: d0h!
  Below 30% Max Health plugin worldclass 5 3,507 09-12-2012, 21:25
Last Post: worldclass
  [Release] Obtain weapons and perks ddaavvee 10 7,941 09-02-2012, 21:04
Last Post: wise

Forum Jump:


Users browsing this thread:
1 Guest(s)

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