[RELEASE] [ZM] Black Ops 2 Custom Perks
-
Can I modify the prices of the perks?
-
FPSSovietRussia Yes for each perk that the mod adds it calls the function perk_system which has these parameters
perk_system( script, pos, model, angles, type, sound, name, cost, fx, perk, bottle)
Find the one of the perk you want to change the price of and change the cost argument
For example:
perk_system( "script_model", (847, -1037, 120), "zombie_vending_revive_on", ( 0, 326, 0 ), "custom", "mus_perks_sleight_sting", "Downer's Delight", 3000, "revive_light", "Downers_Delight","zombie_perk_bottle_revive" );
Here the cost is 3000 for the perk called "Downer's Delight" you can change the value to change the cost
-
Any issues with rampage making you invincible, or just me
-
This post is deleted!
-
Awesome
-
-
You seem to have declared the same function twice which throws an error
https://github.com/Viren070/BO2-Zombies-Custom-Perks/blob/main/src/custom_perk_machines.gsc#L523C1-L523C1
https://github.com/Viren070/BO2-Zombies-Custom-Perks/blob/main/src/custom_perk_machines.gsc#L1006 -
Yes, it's giving me the same error:
[ERROR]:compiler:scripts/zm/custom_perk_machines.gsc:1006:1:funciotn name 'custom_get_player_weapon_limit' already defined as local function -
XResident21 see the post I linked for a solution
-
It works now, thank you very much
-
Viren_7 is it possible for you to try add perks to die rise and motd?
-
-
just read what already got posted? you don't even need to scroll up
-
Viren_7 I've tried your mod and it's insane ! Thanks you for making it ! I have a quick question tho, how do you start a zombie game with a million points ? Your screeenshots shows that you have like 950000 points xD. Thanks
-
Resxt thanks for pointing that out, ill fix it now.
-
coreosiv Thanks. I'm not too sure, but it might have been self.points = 99999 on the onPlayerSpawned function
-
C0NFU510N nah. although i could add the perks to motd, i remember having some trouble with the afterlife system and the perks.
like i said before, i dont play plutonium that much anymore and don't have time to work on this.
-
Viren_7 Tried adding it to your code in the file but it didn't work. Maybe there is something else I need to add ?
-
coreosiv my bad, it was self.score, not self.points
-
Viren_7 Awesome, it works ! Thank you bro, I am going to try to create a simple script to start with more points, I am very new to coding gsc so it's going to be tough.
-
Viren_7 I've tried adding a new perk using the code you gave at the bottom of the first post but something isn't working. I first wrote this :
Then I wrote this right aboce the init_custom_map :
And I added a perk next to one already existing, but the perk doesn't appear and the game spams me with Angles and positions message on the left :
Any idea why this is happening ? Thanks for your help