UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Hopefully last question with my custom perk

broken avatar :(
Created 10 years ago
by Dust
0 Members and 1 Guest are viewing this topic.
1,295 views
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 4 years ago
Posts
2,148
Respect
Forum Rank
King of the Zombies
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Signature
Donate to me if you enjoy my work. https://www.paypal.me/thezombiekilla6
×
Dust's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Dust's Contact & Social LinksMrZ0mbiesFanaticdust103194MrZ0mbiesFanatic
Okay this is hopefully going to be my last question before i get the perk fully working. I have 2 custom perks and they both have the same problem. When i buy the perk it does its effect, (gives me double points on the double points perk and gives me ammo on the ammomatic perk) but when i go to knife my knife suddenly becomes 1 hit even on round 7, i dont understand whats wrong, here is my ammomatic perk script

Code Snippet
Plaintext
check_for_ammo_regen()
{
  while( 1 )
  {
    players = getplayers();
    for( j=0; j<players.size; j++ )
    {
      if( players[j] HasPerk( "specialty_leadfoot" ) )
      {
        player_weapons = players[j] GetWeaponsListPrimaries();
        for( k=0; k<player_weapons.size; k++ )
        {
          max_ammo = WeaponMaxAmmo( player_weapons[k] );
          current_ammo = players[j] GetWeaponAmmoStock( player_weapons[k] );
          if( current_ammo < max_ammo )
            players[j] SetWeaponAmmoStock( player_weapons[k], current_ammo + 5 );
iprintln("The ammo perk is working");
        }
      }
    }
    wait( 5 );
  }
  }


Just noticed i put it in the wrong place. can a mod move this please
Last Edit: April 18, 2014, 08:12:49 pm by thezombiekilla6
Marked as best answer by thezombiekilla6 10 years ago
broken avatar :(
×
broken avatar :(
Location: de
Date Registered: 6 August 2012
Last active: 4 years ago
Posts
277
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter Elite
My Groups
More
×
YaPh1l's Groups
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
YaPh1l's Contact & Social Links
Search through your files if you used specialty_leadfood somewhere else too.

- Phil.
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 4 years ago
Posts
2,148
Respect
Forum Rank
King of the Zombies
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
Dust's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Dust's Contact & Social LinksMrZ0mbiesFanaticdust103194MrZ0mbiesFanatic
Search through your files if you used specialty_leadfood somewhere else too.

- Phil.

That was the problem, apparently leadfoot was used in zombiemode_spawner, as increased melee damage, never put that there though so must of been treyarch

 
Loading ...