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

Quick script fix please help

broken avatar :(
Created 7 years ago
by Pieternba2k
0 Members and 1 Guest are viewing this topic.
2,104 views
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 7 March 2016
Last active: 5 years ago
Posts
88
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Love 4 Custom zombies
Signature
My maps:
Pietercity v1.0
Matrix V1.1
×
Pieternba2k's Groups
Pieternba2k's Contact & Social Linksbasketlbalpro-96PieternbaPieternba2kLove4theGame
Hello everyone, I followed this tutorial:

https://ugx-mods.com/forum/index.php?topic=5796.0

and was wondering if you anyknow knows what I need to add to

getRandomPerk(player)
{
   //DUKIP - Make sure we're not drinking anything already.
   if(IsSubStr(player getCurrentWeapon(), "bottle") || (IsDefined(player.is_drinking) && player.is_drinking))
      return;

   all_perks = [];
   all_perks[0] = "specialty_armorvest";
   all_perks[1] = "specialty_quickrevive";
   all_perks[2] = "specialty_fastreload";
   all_perks[3] = "specialty_rof";
   //all_perks[NUM] = "specialty_XXXX";

   all_perks = array_randomize(all_perks);

   thePerk = random(all_perks);

   return thePerk;
}

- in order to get the bamskater b01 perks to work aswell (phd, staminup, deadshot, mule kick)
- and maybe how to delete the drinking animation this is made in the script

this should be a quick fix, any help would be appreciated!
Thanks for your help!  :)
Marked as best answer by Pieternba2k 7 years ago
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
Add this to the list:

Code Snippet
Plaintext
  all_perks[4] = "specialty_detectexplosive";
  all_perks[5] = "specialty_longersprint";
  all_perks[6] = "specialty_extraammo";
  all_perks[7] = "specialty_???";


I cant remember what Bam used for deadshot. If you open his _zombiemode_perks_bo ( i think it was called? ) and look for 'specialty_' you will find them.



to remove the drinking show more/the entire script
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 7 March 2016
Last active: 5 years ago
Posts
88
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Love 4 Custom zombies
×
Pieternba2k's Groups
Pieternba2k's Contact & Social Linksbasketlbalpro-96PieternbaPieternba2kLove4theGame
Add this to the list:

Code Snippet
Plaintext
  all_perks[4] = "specialty_detectexplosive";
  all_perks[5] = "specialty_longersprint";
  all_perks[6] = "specialty_extraammo";
  all_perks[7] = "specialty_???";


I cant remember what Bam used for deadshot. If you open his _zombiemode_perks_bo ( i think it was called? ) and look for 'specialty_' you will find them.



to remove the drinking show more/the entire script

Super bedankt man! Als je de link opent zie je de script het is niet veel, dus als je tijd hebt om te kijken laat het vooral weten! :)
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
Je gaat waarschuwingen krijgen als je geen engels typt in een topic, ook voor andere geruikers die dit topic gebruiken en mss hetzelfde probleem hebben is het makkelijker in het engels :D vandaar ;)



I missed that link, to remove the drinking comment out/remove all these lines:

Code Snippet
Plaintext
	//DUKIP - Moved this var to above the perk bottle give as there was a chance of getting "dual" perks.
player.is_drinking = 1;

// do the drink animation
gun = player maps\_zombiemode_perks::perk_give_bottle_begin( perk );

player waittill_any( "fake_death", "death", "player_downed", "weapon_change_complete" );

// restore player controls and movement
player maps\_zombiemode_perks::perk_give_bottle_end( gun, perk );
player.is_drinking = undefined;
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 7 March 2016
Last active: 5 years ago
Posts
88
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Love 4 Custom zombies
×
Pieternba2k's Groups
Pieternba2k's Contact & Social Linksbasketlbalpro-96PieternbaPieternba2kLove4theGame
Je gaat waarschuwingen krijgen als je geen engels typt in een topic, ook voor andere geruikers die dit topic gebruiken en mss hetzelfde probleem hebben is het makkelijker in het engels :D vandaar ;)



I missed that link, to remove the drinking comment out/remove all these lines:

Code Snippet
Plaintext
	//DUKIP - Moved this var to above the perk bottle give as there was a chance of getting "dual" perks.
player.is_drinking = 1;

// do the drink animation
gun = player maps\_zombiemode_perks::perk_give_bottle_begin( perk );

player waittill_any( "fake_death", "death", "player_downed", "weapon_change_complete" );

// restore player controls and movement
player maps\_zombiemode_perks::perk_give_bottle_end( gun, perk );
player.is_drinking = undefined;

Heel erg bedankt man!

Thanks you somich stuffy u the best

Double Post Merge: June 28, 2017, 01:53:48 pm
Add this to the list:

Code Snippet
Plaintext
  all_perks[4] = "specialty_detectexplosive";
  all_perks[5] = "specialty_longersprint";
  all_perks[6] = "specialty_extraammo";
  all_perks[7] = "specialty_???";


I cant remember what Bam used for deadshot. If you open his _zombiemode_perks_bo ( i think it was called? ) and look for 'specialty_' you will find them.



to remove the drinking show more/the entire script

Thanks alot stuff,
removing the drink animation worked, after adding the 4 black ops perks,

ps: for anyone who does this, go to zombiemode_perks.gsc , find perk_hud_create and add

 case "specialty_armorvest":
shader = "specialty_juggernaut_zombies";
break;

case "specialty_quickrevive":
shader = "specialty_quickrevive_zombies";
break;

case "specialty_fastreload":
shader = "specialty_fastreload_zombies";
break;

case "specialty_rof":
shader = "specialty_doubletap_zombies";
break;

in order to make the shaders visible
Last Edit: June 28, 2017, 03:51:45 pm by Pieternba2k

 
Loading ...