So, I heard you got down right inbetween that weird time frame of you buying the perk but you don't have it yet. And now you're raging and probably even left the game.
Now if it was Original? World At War, it would deduct points AFTER you got it, not as you hold "Use".
Well boi, and/or gurl (I don't judge), do I have a tutorial for you.
Now if it was Original? World At War, it would deduct points AFTER you got it, not as you hold "Use".
Well boi, and/or gurl (I don't judge), do I have a tutorial for you.
- Step 0:
-- Find "_zm_perks.gsc" within "ROOT\shared\raw\scripts\zm"
- Step 0.5:
-- Copy to your mod/map scripts folder. For Example: "ROOT\maps\zm_mapname\scripts\zm"
- Step 1:
-- Open the file and goto line ~577. And replace:
sound = "evt_bottle_dispense";
playsoundatposition(sound, self.origin);
player zm_score::minus_to_player_score( current_cost );
perkHash = -1;
if (isDefined(level._custom_perks[ perk ]) && isDefined(level._custom_perks[ perk ].hash_id))
{
perkHash = level._custom_perks[ perk ].hash_id;
}
player RecordMapEvent(ZM_MAP_EVENT_PERK_MACHINE_USED, GetTime(), self.origin, level.round_number, perkHash);
player.perk_purchased = perk;
player notify( "perk_purchased", perk );
self thread zm_audio::sndPerksJingles_Player(1);
self thread vending_trigger_post_think( player, perk );
sound = "evt_bottle_dispense";
playsoundatposition(sound, self.origin);
perkHash = -1;
if (isDefined(level._custom_perks[ perk ]) && isDefined(level._custom_perks[ perk ].hash_id))
{
perkHash = level._custom_perks[ perk ].hash_id;
}
player RecordMapEvent(ZM_MAP_EVENT_PERK_MACHINE_USED, GetTime(), self.origin, level.round_number, perkHash);
player.perk_purchased = perk;
player notify( "perk_purchased", perk );
self thread zm_audio::sndPerksJingles_Player(1);
self thread vending_trigger_post_think( player, perk );
player waittill("burp");
player zm_score::minus_to_player_score( current_cost );
-- If you didn't already, put "scriptparsetree,scripts/zm/_zm_perks.gsc" within your zone file so the game knows about the file.
Now for the less important stuff:
- Why?
-- Because I really liked that why and I figured maybe classic fans (or new ones) would like it too.
- What does this do?
-- So basically instead of the player buying the perk right away, it waits til the player burps (aka gets the perk) then issues the deduction of points.