GLOBAL: Add Lockdown gamemode#158
Conversation
MotoLegacy
left a comment
There was a problem hiding this comment.
This is a really cool mode, thanks for working on it! Left some feedback.
| valid_weapon_found = true; | ||
| } | ||
|
|
||
| // assign and sweap weapon |
There was a problem hiding this comment.
What is the behavior if they're in the middle of drinking something?
There was a problem hiding this comment.
Swaps weapons but keeps you in a state like you're still drinking a perk (can't shoot, interact, so on)... good catch, I'll fix that 😓
| PU_UpgradeWeaponRequirement ); | ||
| PU_AddToStruct(PU_BONUSPOINTS, "models/pu/points!.mdl", "bonus_points.wav", PU_BonusPoints, | ||
| PU_BonusPointsRequirement ); | ||
| PU_AddToStruct(PU_RANDOMWEAPON, "models/weapons/mp40/g_mp40.mdl", "random_weapon.wav", PU_RandomWeapon, |
There was a problem hiding this comment.
We shouldn't reference a weapon world model. If you want to duplicate the mp40 mesh with a Power-Up texture however that is OK.
| count = Gamemode_Lockdown_CollectPerks(count, "perk_revive"); | ||
| count = Gamemode_Lockdown_CollectPerks(count, "perk_juggernog"); | ||
| count = Gamemode_Lockdown_CollectPerks(count, "perk_speed"); | ||
| count = Gamemode_Lockdown_CollectPerks(count, "perk_double"); | ||
| count = Gamemode_Lockdown_CollectPerks(count, "perk_flopper"); | ||
| count = Gamemode_Lockdown_CollectPerks(count, "perk_staminup"); | ||
| count = Gamemode_Lockdown_CollectPerks(count, "perk_deadshot"); | ||
| count = Gamemode_Lockdown_CollectPerks(count, "perk_mule"); | ||
| count = Gamemode_Lockdown_CollectPerks(count, "perk_pap"); |
There was a problem hiding this comment.
We can clean this up significantly if we just make a list and reference the list. Also, why are we doing this every time it's called?
| lock_angs[j] = tmp_v; | ||
| } | ||
|
|
||
| // Apply shuffled positions |
There was a problem hiding this comment.
We should make sure we never get an item spawning in the same place it was before. Also, we should play the sparkle effect when it moves so it seems less janky.
| lock_ran_post_init_logic = true; | ||
| } | ||
|
|
||
| // Every 5 rounds, reroll the perks to help the player |
There was a problem hiding this comment.
We're checking this and doing the door stuff every frame?
…perks using ent_classname, remove voice line initialization & don't randomize perks on game start
Description of Changes
This PR adds the Lockdown, which is essentially the "one-room challenge". This mode adds a new random weapon powerup, which grants a random weapon once picked up.
Every 5 rounds, the perks & pack-a-punch will randomize locations.
Visual Sample
Random weapon powerup:
2026-04-16.21-45-06.mp4
Perks randomizing:
8mb.video-QWW-vUFMDTN8.mp4
(Apologies for lag in the beginning of this video)
Checklist