Garry's Mod

Garry's Mod

Dynamic NPC Squads
正在显示第 11 - 20 项,共 23 项条目
< 1  2  3 >
更新于:2024 年 8 月 1 日 下午 2:37
作者:SkullWagen

Big crash fix, don't do squad stuff with striders.
+lots of small tweaks.

更新于:2024 年 7 月 31 日 下午 4:22
作者:SkullWagen

Tweaks, potential crash fix

更新于:2024 年 7 月 11 日 下午 10:26
作者:SkullWagen

Small tweaks, fixes.

更新于:2024 年 7 月 6 日 下午 6:06
作者:SkullWagen

Let striders, helicopters, gunships join squads

更新于:2024 年 6 月 21 日 下午 12:13
作者:SkullWagen

Improve "Blacklisting" logic
Blacklisted/crashing npcs now call for backup, instead of doing nothing.

Added DYN_NPC_SQUADS.dynSquadTeams utility table.

Properly dissolve squads if any members hate eachother

+ misc small tweaks

更新于:2024 年 5 月 18 日 下午 2:05
作者:SkullWagen

Error stomp

更新于:2024 年 5 月 11 日 下午 12:40
作者:SkullWagen

Code cleanup + optimisations


Made autorun a loader.

OnEntityCreated optimisations/tweaks.
Returns early if :IsNPC() check fails.
Only creates one timer.simple.

Rework "idle/alert" logic a bit, to be more readable.

npc.DynamicNpcSquadsIgnore doesn't cancel the timer.

All assault/reinforce funcs now take priority variable.
0 priority is highest priority.

Made squads more likely to leave enclosed areas.

更新于:2024 年 5 月 1 日 下午 1:16
作者:SkullWagen

More polish
Wandering squad leaders will now "direct" their members away from other squads, meaning they'll spread out a bit more when wandering.

Fixed squads not using up assaultpoints when acquiring them
( npcs won't flood other squads with backup, backup will come as more of a trickle )

NPCs clear areas much more aggresively
( less redundant wandering back and fourth after a fight )

Improved compatibility a bit
( dynsquad prioritizes SetSquad/GetSquad over the squadname keyvalue )

Moved all "Yapping" logic to a new autorun file

更新于:2024 年 4 月 26 日 下午 7:27
作者:SkullWagen

Bug stomp

更新于:2024 年 4 月 20 日 下午 5:32
作者:SkullWagen

Rebels & vortigaunts now talk when they do dynsquad actions.
( And reply to eachother! )

Added the "Dynsquad Goal"
Basically a capture point.

Renamed convar
npc_dynsquads_dosquads to npc_dynsquads_enabled

Added convars:
npc_dynsquads_developer ( enables/disables debug info )
npc_dynsquads_dowandering ( idle npc wandering )
npc_dynsquads_doassaults ( idle npc reinforcing )
npc_dynsquads_yapping ( enables/disables the extra idle npc voicelines )

Massive optimisations.

Fixed duped squads not working properly.

Fixed npcs without weapons acting a bit too suicidal.

Polished the crap out of the "backup" system.
Added functions for devs to give "backup" points to npcs.
DYN_NPC_SQUADS.SaveReinforcePointAllNpcTeams( pos, filter )

See the new dynsquad_goal for a working example.

Npcs will now only call for backup when their squad is running into problems, losing health, members.

Added hooks
"dynsquads_blockmovement" Just blocks the dynsquad system from changing an npc's schedule.
"dynsquads_blocksquadthinking" Blocks all dynsquad thinking for one specific npc.

Fixed autorefresh breaking the script.