Mod with new Perk

Posts 1–9 of 9 · Page 1 of 1
Mod with new Perk
As i've written in the topic i want to make out of ninja a new perk...
I want to remove the Invisibility to HBS and add Louder Enemy Footsteps(Sitrep Pro)

My Code Looks like this:
Code:
	if ( self _hasperk( "specialty_heartbreaker" ) )
		self UnSetPerk( "specialty_heartbreaker" );
		self maps\mp\perks\_perks::givePerk( "specialty_selectivehearing");
		self maps\mp\perks\_perks::givePerk( "specialty_quieter");
Now if i join the Server everything looks fine, but when i choose a class my server freaks out and that's what the mp.log says:

Code:
[     59878] Replacing perk "specialty_quieter" in perk slot 6 with perk "specialty_selectivehearing"
[     59878] Replacing perk "specialty_selectivehearing" in perk slot 6 with perk "specialty_quieter"
[     59879] Replacing perk "specialty_quieter" in perk slot 6 with perk "specialty_quieter"
[     59879] Replacing perk "specialty_quieter" in perk slot 6 with perk "specialty_selectivehearing"
[     59879] Replacing perk "specialty_selectivehearing" in perk slot 6 with perk "specialty_selectivehearing"
[     59879] Replacing perk "specialty_selectivehearing" in perk slot 6 with perk "specialty_quieter"
[     59880] Replacing perk "specialty_quieter" in perk slot 6 with perk "specialty_quieter"
[     59880] Replacing perk "specialty_quieter" in perk slot 6 with perk "specialty_selectivehearing"
[     59880] Replacing perk "specialty_selectivehearing" in perk slot 6 with perk "specialty_quieter"
[     59880] Replacing perk "specialty_quieter" in perk slot 6 with perk "specialty_quieter"
[     59881] Replacing perk "specialty_quieter" in perk slot 6 with perk "specialty_selectivehearing"
[     59881] Replacing perk "specialty_selectivehearing" in perk slot 6 with perk "specialty_selectivehearing"
[     59881] Replacing perk "specialty_selectivehearing" in perk slot 6 with perk "specialty_selectivehearing"
[     59881] Replacing perk "specialty_selectivehearing" in perk slot 6 with perk "specialty_quieter"
[     59882] Replacing perk "specialty_quieter" in perk slot 6 with perk "specialty_quieter"
[     59882] Replacing perk "specialty_quieter" in perk slot 6 with perk "specialty_selectivehearing"
[     59882] Replacing perk "specialty_selectivehearing" in perk slot 6 with perk "specialty_quieter"
[     59882] Replacing perk "specialty_quieter" in perk slot 6 with perk "specialty_quieter"
[     59882] Replacing perk "specialty_quieter" in perk slot 6 with perk "specialty_selectivehearing"
[     59883] Replacing perk "specialty_selectivehearing" in perk slot 6 with perk "specialty_selectivehearing"
[     59883] Replacing perk "specialty_selectivehearing" in perk slot 6 with perk "specialty_quieter"
[     59883] Replacing perk "specialty_quieter" in perk slot 6 with perk "specialty_quieter"
[     59883] Replacing perk "specialty_quieter" in perk slot 6 with perk "specialty_selectivehearing"
[     59884] Replacing perk "specialty_selectivehearing" in perk slot 6 with perk "specialty_quieter"
[     59884] Replacing perk "specialty_quieter" in perk slot 6 with perk "specialty_quieter"
[     59884] Replacing perk "specialty_quieter" in perk slot 6 with perk "specialty_selectivehearing"
[     59884] Replacing perk "specialty_selectivehearing" in perk slot 6 with perk "specialty_selectivehearing"
[     59885] Replacing perk "specialty_selectivehearing" in perk slot 6 with perk "specialty_selectivehearing"
[     59885] Replacing perk "specialty_selectivehearing" in perk slot 6 with perk "specialty_selectivehearing"
[     59885] Replacing perk "specialty_selectivehearing" in perk slot 6 with perk "specialty_selectivehearing"
[     59885] Replacing perk "specialty_selectivehearing" in perk slot 6 with perk "specialty_quieter"
[     59885] Replacing perk "specialty_quieter" in perk slot 6 with perk "specialty_quieter"
[     59886] Replacing perk "specialty_quieter" in perk slot 6 with perk "specialty_selectivehearing"
[     59886] Replacing perk "specialty_selectivehearing" in perk slot 6 with perk "specialty_quieter"
[     59886] Replacing perk "specialty_quieter" in perk slot 6 with perk "specialty_quieter"
[     59886] Replacing perk "specialty_quieter" in perk slot 6 with perk "specialty_selectivehearing"
Is it possible to put one of these perks in another perk slot?

Thanks for Help
Quote Originally Posted by Necron28 View Post
Is it possible to put one of these perks in another perk slot?
Not quite sure, the basic engine can't be modified, and the limit in the engine is 3. So pretty sure it's not that easy to do, if possible at all
Yeah would be nice if it's possible
Quote Originally Posted by Necron28 View Post
Yeah would be nice if it's possible
u want to assign a key for replacing the perks ? or in mod u want only those perks ?
No i dont want any key, i just want when i start the server, the server checks if i got ninja and then he replaces ninja normal with sitrep pro, so you should have a perk where your footsteps are silent and enemy footsteps are louder, but you aren't invisible to enemy Heart-Beat-Sensor

the problem is you can't possess these perks simultaneous...

hope you understand what i mean
so u want ninja pro and sitrep pro together ?
i once made a mod were you started with like 8 perks. but i dont know how i did that ^^
what is interesting that my server says, that the green pro perks are replaced in perk slot 6...
i guess the normal green perks are in slot 5 then.
imaybe it is somehow possible to place sitrep pro in perk slot 5 instead of 6 and ninja pro in perk slot 6

if someone knows how to place a perk in a certain slot pls let me know
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us