These errors you guys are getting are odd to me. It may he because I added in Bam's perks manually, as I dont use script placer Z. That could be the problem...something with the script placer, because the script and everything I posted works 110% perfect for me ???
Well this sucks I guess I will put a perk limit of 5 perks on if I can find where to place it.
If you want scripts / features made for you, then contact me by PM or email / skype etc it will cost you tho so if you have no intention of reciprocating don't even waste my time
These errors you guys are getting are odd to me. It may he because I added in Bam's perks manually, as I dont use script placer Z. That could be the problem...something with the script placer, because the script and everything I posted works 110% perfect for me ???
i dont see how it "can" when you havent edited the trigger to which this applies?
The limit you are making is not even being looked at by the perks script when buying a perk?
if ( cheat != true ) { //player iprintln( "Already using Perk: " + perk ); self playsound("deny"); player thread play_no_money_perk_dialog();
continue; } }
if ( player.score < cost ) { //player iprintln( "Not enough points to buy Perk: " + perk ); self playsound("deny"); player thread play_no_money_perk_dialog(); continue; }
sound = "bottle_dispense3d"; player achievement_notify( "perk_used" ); playsoundatposition(sound, self.origin); player maps\_zombiemode_score::minus_to_player_score( cost ); ///bottle_dispense switch( perk ) { case "specialty_armorvest": sound = "mx_jugger_sting"; break;
case "specialty_quickrevive": sound = "mx_revive_sting"; break;
case "specialty_fastreload": sound = "mx_speed_sting"; break;
case "specialty_rof": sound = "mx_doubletap_sting"; break;
default: sound = "mx_jugger_sting"; break; }
self thread play_vendor_stings(sound);
// self waittill("sound_done");
// do the drink animation gun = player perk_give_bottle_begin( perk ); player.is_drinking = 1; player waittill_any( "fake_death", "death", "player_downed", "weapon_change_complete" );
// restore player controls and movement player perk_give_bottle_end( gun, perk ); player.is_drinking = undefined; // TODO: race condition? if ( player maps\_laststand::player_is_in_laststand() ) { continue; }
player SetPerk( perk ); player thread perk_vo(perk); player setblur( 4, 0.1 ); wait(0.1); player setblur(0, 0.1); //earthquake (0.4, 0.2, self.origin, 100); if(perk == "specialty_armorvest") { player.maxhealth = level.zombie_vars["zombie_perk_juggernaut_health"]; player.health = level.zombie_vars["zombie_perk_juggernaut_health"]; //player.health = 160; }
player perk_hud_create( perk );
//stat tracking player.stats["perks"]++;
//player iprintln( "Bought Perk: " + perk ); bbPrint( "zombie_uses: playername %s playerscore %d round %d cost %d name %s x %f y %f z %f type perk", player.playername, player.score, level.round_number, cost, perk, self.origin );
player thread perk_think( perk );
} }
this is the function from zombiemode_perks, as you havent touched it, your script is completely ignored when buying a perk, you need to add a check in there
if ( cheat != true ) { //player iprintln( "Already using Perk: " + perk ); self playsound("deny"); player thread play_no_money_perk_dialog();
continue; } }
if ( player.score < cost ) { //player iprintln( "Not enough points to buy Perk: " + perk ); self playsound("deny"); player thread play_no_money_perk_dialog(); continue; }
sound = "bottle_dispense3d"; player achievement_notify( "perk_used" ); playsoundatposition(sound, self.origin); player maps\_zombiemode_score::minus_to_player_score( cost ); ///bottle_dispense switch( perk ) { case "specialty_armorvest": sound = "mx_jugger_sting"; break;
case "specialty_quickrevive": sound = "mx_revive_sting"; break;
case "specialty_fastreload": sound = "mx_speed_sting"; break;
case "specialty_rof": sound = "mx_doubletap_sting"; break;
default: sound = "mx_jugger_sting"; break; }
self thread play_vendor_stings(sound);
// self waittill("sound_done");
// do the drink animation gun = player perk_give_bottle_begin( perk ); player.is_drinking = 1; player waittill_any( "fake_death", "death", "player_downed", "weapon_change_complete" );
// restore player controls and movement player perk_give_bottle_end( gun, perk ); player.is_drinking = undefined; // TODO: race condition? if ( player maps\_laststand::player_is_in_laststand() ) { continue; }
player SetPerk( perk ); player thread perk_vo(perk); player setblur( 4, 0.1 ); wait(0.1); player setblur(0, 0.1); //earthquake (0.4, 0.2, self.origin, 100); if(perk == "specialty_armorvest") { player.maxhealth = level.zombie_vars["zombie_perk_juggernaut_health"]; player.health = level.zombie_vars["zombie_perk_juggernaut_health"]; //player.health = 160; }
player perk_hud_create( perk );
//stat tracking player.stats["perks"]++;
//player iprintln( "Bought Perk: " + perk ); bbPrint( "zombie_uses: playername %s playerscore %d round %d cost %d name %s x %f y %f z %f type perk", player.playername, player.score, level.round_number, cost, perk, self.origin );
player thread perk_think( perk );
} }
this is the function from zombiemode_perks, as you havent touched it, your script is completely ignored when buying a perk, you need to add a check in there
since he said he installed bams perks and bams perks has a perk limit hes just changing that limit so he wont have to edit the vending_trigger_think() function since bams limit just makes the perk machines trigger invisible if you have more perks then the limit that is set in
Code Snippet
Plaintext
level.perk_limit = 4;
by just incrementing it by one when the player presses 'USE' in the trigger
i just assumed based on the fact otherwise, one player buying it will reward all players, just looked through the script and see that is the case however
I got confused because someone else posted this part
Quote
flag_wait( "all_players_connected" ); players = get_players(); for( i = 0; i < players.size; i++ ) { players.perk_limit = perk_limit; }
Which leads me to believe the people having trouble are actually having trouble with bams side of things, but if this script will literally only work with bams perks set up, you should really put "install bams perks" as step 1
i just assumed based on the fact otherwise, one player buying it will reward all players, just looked through the script and see that is the case however
I got confused because someone else posted this part
Which leads me to believe the people having trouble are actually having trouble with bams side of things, but if this script will literally only work with bams perks set up, you should really put "install bams perks" as step 1
Ahh okay I understand. Perhaps I'll re-write this with the necessary checks and update it when everything gets sorted out. Not sure what the deal is with Bam's perks though
Will test when I get home. Thank you sir. Double Post Merge: April 19, 2016, 05:24:03 amAlso how easy would it be to convert this to a dmg trigger for ee style extra slots, something you have to find, no cost.