Garry's Mod

Garry's Mod

Supercop Nextbot
 此主题已被置顶,因此可能具有重要性
StrawWagen  [开发者] 2023 年 9 月 16 日 上午 12:52
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
最后由 StrawWagen 编辑于; 2023 年 9 月 22 日 下午 12:45
< >
正在显示第 1 - 4 条,共 4 条留言
idksomething 2023 年 9 月 16 日 上午 12:53 
all these sound nice, but will there be options in the spawn menu for convenience?
idiot 2023 年 9 月 16 日 上午 8:41 
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  [开发者] 2023 年 9 月 16 日 上午 11:38 
The idea is neat but it's not what i'm goin for here lol
idksomething 2023 年 9 月 16 日 下午 12:35 
引用自 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.
< >
正在显示第 1 - 4 条,共 4 条留言
每页显示数: 1530 50