make sure perks are there from the beginning

This commit is contained in:
2026-05-07 17:05:45 +02:00
parent 27dc5e199c
commit 7fb8f2d2db

View File

@@ -273,6 +273,11 @@ firstSpawn()
wait .1;
self notify("menuresponse", "changeclass", "class1");
wait .1;
// Re-apply perks here — the engine's class-load triggered by changeclass above
// can wipe perk state before loadSetup() gets a chance to set them on first spawn.
self maps\mp\perks\_perks::givePerk("specialty_fastreload"); // Sleight of Hand
self maps\mp\perks\_perks::givePerk("specialty_falldamage");
self maps\mp\perks\_perks::givePerk("specialty_quickdraw");
self.firstSpawn = false;
self thread tryCreateMarkerIcons();
}