can't edit perks limit
-
Matrixvwrote on Jun 12, 2022, 5:51 PM last edited by Matrixv Jun 12, 2022, 8:57 PM
i tried to make a script for edit perks limit but even with editing everything i can only buy 4 perks here is the script :
#include maps\_utility; #include common_scripts\utility; init() { level.perk_purchase_limit = 9; level.perk_limit = 9; self.num_max_perks = 9; level.max_perks = 9; for ( ;; ) { level waittill( "connecting", player ); player.clientid = level.clientid; player thread onplayerspawned(); level.clientid++; } } onPlayerConnect() { //level.perk_limit = 9; //self.num_max_perks = 9; //level.max_perks = 9; //level.perk_purchase_limit = 9; for ( ;; ) { level waittill( "connecting", player ); player.clientid = level.clientid; player thread onplayerspawned(); level.clientid++; } } onPlayerSpawned() { self endon( "disconnect" ); for( ;; ) { self waittill( "spawned_player" ); //self.num_max_perks = 9; //level.perk_limit = 9; //level.max_perks = 9; //level.perk_purchase_limit = 9; while(1){ self.num_perks = 0; } } }
why do i did a while boucle ? because i see that in zombiemode.gsc a check is made if self.num_perks >=4 then the game deny player to buy new perk so the while boucle is for make self.num_perks as 0 always but didn't work also
-
-
Matrixvreplied to dontknowletspl on Jun 12, 2022, 6:16 PM last edited by Matrixv Jun 12, 2022, 9:17 PM
@dontknowletsplay nvm sorry
-
@3D2D Change the number 4 to what ever you want the limit to be-
-
@dontknowletsplay yes just figured out thanks
-
serranopepperreplied to dontknowletspl on Jun 21, 2022, 4:41 AM last edited by serranopepper Jun 21, 2022, 7:42 AM
@dontknowletsplay do you know where that file is because i cant find it
I dont think its there
-
serranopepper It is there otherwise you would get error when starting zombie game. Its in your game files
raw/maps/_zombiemode_perks.gsc
5/7