Garry's Mod

Garry's Mod

Supercop Nextbot
 This topic has been pinned, so it's probably important
StrawWagen  [developer] 16 Sep, 2023 @ 12:52am
Convars & more!
Convars that modify how supercop spawns.
Don't have to change any of these for it to work.

Anything non-ttt ( eg, sandbox )

The "Chance for supercop to invade" in question.
Set this to 0 and he will never invade, set to 100, always invade.
supercop_nextbot_generic_invasionchance
How long in minutes, will supercop invade for? 0 for the invasion to never end.
supercop_nextbot_generic_invasionlength


TTT

Spawn chance on round start, 0 to never spawn, 100 to always spawn.
supercop_nextbot_ttt_invadechanceonroundstart
How long after the round starts should supercop wait to invade, seconds.
supercop_nextbot_ttt_invadedelay
Only allow supercop to invade once per map.
supercop_nextbot_ttt_invadeonce


Spawn protection. ( Supercop invades from spawnpoints! )

Supercop won't shoot until he's been alive for this long
supercop_nextbot_spawnprot_copspawn
Don't shoot players until they've been alive for this long.
supercop_nextbot_spawnprot_ply


Other

Should supercop jog?
supercop_nextbot_jog
Supercop's model, Has to be rigged for players!
supercop_nextbot_forcedmodel
Do supercop hud/chat prints?
Set to 0 for a more "ambushey" experience
supercop_nextbot_server_prints
Do supercop console |LOG|s?
supercop_nextbot_server_logs
Do manhack alarm when invading?
Set to 0 for a more "ambushey" experience
supercop_nextbot_server_invadingalarm

Do supercop navpatcher? Fixes supercop not being able to use some stairs.
supercop_nextbot_server_navpatcher
If navpatcher ran, save any patches made?
supercop_nextbot_server_navsave


Nerd zone!
Global functions

Finds a spot for supercop to spawn, and if there is none, or there's already an invading supercop,
or there's no navmesh, returns false.
supercopNextbot_CopCanInvade()
Spawns "invading" supercop.
supercopNextbot_CopInvade()
Despawns supercop.
supercopNextbot_Remove()


Hooks

No args. Return true to block supercopNextbot_CopCanInvade from returning true.
supercop_nextbot_blockinvasion
No args, runs after invasion succeeds and supercop is spawned.
supercop_nextbot_successfulinvasion
No args, runs after bot is sucessfully removed via supercopNextbot_Remove.
supercop_nextbot_removed
Last edited by StrawWagen; 22 Sep, 2023 @ 12:45pm
< >
Showing 1-4 of 4 comments
idksomething 16 Sep, 2023 @ 12:53am 
all these sound nice, but will there be options in the spawn menu for convenience?
Yeah, same. Also, I'd recommend actually making him be killable, damage scaler, etc. It's no fun if he's just invincible and you can see his healthbar is unaffected even by his own weapons.
StrawWagen  [developer] 16 Sep, 2023 @ 11:38am 
The idea is neat but it's not what i'm goin for here lol
idksomething 16 Sep, 2023 @ 12:35pm 
Originally posted by rest easy chef:
Yeah, same. Also, I'd recommend actually making him be killable, damage scaler, etc. It's no fun if he's just invincible and you can see his healthbar is unaffected even by his own weapons.
just get bsmod killmoves, it works every single ♥♥♥♥♥♥♥♥ time. either that or that instant kill headshots mod.
< >
Showing 1-4 of 4 comments
Per page: 1530 50