So I am trying to make my first custom perk and i tried 2 different ways both of which did not work. Basically what the perk is suppose to do is be constant double points(similar to double dew except you get 20 for a hitmarker also) and like i said i tried 2 different ways, buying the perk works fine its just the effect of it i tried this way by looking at bamskaters black ops perks script
That gives me 130 for a kill without the perk(which is weird because 130 isnt even any of the numbers) then it gives me 50 points plus the 10 for hitmarkers after i buy the perk and it makes my knife super op (1 hit on round 6)
The other way i tried was i added it in zombiemode like this
And that one gives me double points with or without the perk but it only happens at random times, like some times when i dont have the perk it will give me 10 then other times it will give me 20 same thing with like a melee kill or something. Can anyone help me out?
but that gives me 130 points for a kill without the perk and with the perk i only get 50, but still get the normal 10 points for a hitmarker, also it makes my knife super op with the perk which is weird because i didnt change anything to do with knifing
Last Edit: April 18, 2014, 06:19:04 pm by thezombiekilla6
but that gives me 130 points for a kill without the perk and with the perk i only get 50, but still get the normal 10
130 is for melee kill, 80 for melee, 50 for kill. I tested this before posting. It gave me double points on all zombie damage using the "specialty_quickrevive", but I had it down before this line:
Code Snippet
Plaintext
self.score+=points
It gave me 260 for knives, 100 for kills after I had quick revive, and so on. If you want to see if your code is being used where you put it, just add an
Code Snippet
Plaintext
iprintln("I am using this");
You should probably check and see if your player has "specialty_leadfoot" also.
130 is for melee kill, 80 for melee, 50 for kill. I tested this before posting. It gave me double points on all zombie damage using the "specialty_quickrevive", but I had it down before this line:
Code Snippet
Plaintext
self.score+=points
It gave me 260 for knives, 100 for kills after I had quick revive, and so on. If you want to see if your code is being used where you put it, just add an
Code Snippet
Plaintext
iprintln("I am using this");
You should probably check and see if your player has "specialty_leadfoot" also.
nice. it works perfectly. now i have 2 custom perks in my map