Garry's Mod

Garry's Mod

Advanced Shadow Guy Nextbot [Highly Intelligent AI]
Showing 1-10 of 24 entries
< 1  2  3 >
Update: Aug 14 @ 12:34am

-Super Minor Fix

Update: Aug 14 @ 12:10am

IGNORE

Update: Aug 13 @ 11:05am

-Locomotion fixes
-Creep fixes

Update: Aug 13 @ 7:45am

-Minor Adjustment

Update: Aug 13 @ 7:02am

-Massive bugfix and general smoothness update

Update: Aug 11 @ 12:35am

- Fixed Movement Distances
- General Hotfixes
(this build outdated)

Update: Aug 10 @ 12:29am

=ConVar Additions & Default Value Changes=

New ConVar Added: shadowguy_creep_chance (default: "0.75") - Probability to enter creep mode on spawn.
Updated Defaults:

-shadowguy_probability_chase: "0.30" → "0.40".
-shadowguy_respawn_min_time: "10" → "2".
-shadowguy_respawn_max_time: "30" → "25".
-shadowguy_spawn_prob_very_close: "0.2" → "0.10".
-shadowguy_spawn_prob_close: "0.3" → "0.40".
-shadowguy_spawn_prob_medium: "0.3" → "0.4".
-shadowguy_spawn_prob_large: "0.2" → "0.1".


-Typo Fix in ConVar: shadowguy_light_toggle_one_chance FCVAR flag corrected from incomplete/missing_REPLICATED in some spots (now consistent).

=Environment & Position Handling Updates=

-Outdoor Detection: Trace endpos increased from +10000 to +16384 for better sky detection.
-Z-Clamping Boundaries: MIN_Z: -500 → -16384; MAX_Z: 5000 → 16384 (wider vertical range).
-Ground/Floor Detection: Downward traces extended from -1000 to -16384 for deeper maps.
-Validation: SetPos check adjusted to -16000/+16000 (aligned with new clamps).

=New Functions & Behaviors=

--Creep Mode Introduced: New isCreeping state with CreepBehaviour() - NPC wanders subtly, follows player indirectly, leaves "clues" (e.g., nudges props, opens doors), triggers chase/charge based on distance/probability. Activated on respawn with shadowguy_creep_chance.

New Functions:

-NudgePhysicsObject(): Gentler prop interaction for creep mode (reduced force: 1000 horizontal + 500 upward).
-NudgeObstacles(): Creep-specific avoidance using nudge instead of fling.
-FindRandomWanderPosition(): Selects random navmesh point for wandering.
-GetStaringPlayers(), IsBeingStaredAt(), GetPrimaryStaringPlayer(), AllStaringThroughWindow(): Multiplayer staring detection (closest player prioritized).
-CanSeePlayer(): Checks NPC's line-of-sight to player.


-Door Handling Enhancements: Use Fire("Open") instead of Use(); added pause in creep mode (1s after opening); collision ignore for 2s; recentDoors table to prevent rapid re-open.

=Behavior & AI Updates=

--RunBehaviour: Added creep mode check; passes target to ChargeAtPlayer/Chase.
--LookAtPlayer: Uses new staring functions; primary storer for actions; window delay reduced (1-3 → 0-1).
--ChasePlayerWithVariableSpeed:

-Takes target param.
-Duration: 10-25 → 15-35.
-Speed: Variable ramp from 150 to 400 (slow accel after 4-8s delay); slowdown at <400 to 150.
-Doors: Fire("Open"), no pause.
-30% chance to ramp to charge (2s to 600 speed, set isCharging=true).


ChargeAtPlayer:

-Takes target param.
-Duration: 2-15 → 15-35.
-Speed: 900 → 600.
-If fromChase: Closer slowdown (<180 to 200).
-Doors: Fire("Open"), no pause.


-RespawnNPC: Sets isCreeping randomly; resets clue_count, lastWanderPos; visibility true/false wrapped around spawn.
-SetVisibility: Timer: 40s → random 30-90s if creeping.
-TeleportAway/GoInvisible: Stops creep mode.

=Rendering & Visual Fixes=

Draw:

-Tried to fix water clipping (clips above surface for submerged effect).
-Double-sided rendering (draws back side for visibility fix).


-Initialize/OnRemove: Removed print statements for cleaner output.

=Utility Menu Updates=

-Added slider for shadowguy_creep_chance in "Behavior Probabilities".
Minor label fixes (e.g., "Medium Spawn Probability" → "Medium Spawn").

=Bug Fixes & Optimizations=

-Multiplayer Support: Staring detection now handles multiple players.
-Stuck Handling: Teleports on stuck in all modes.
-Debug Removal: Removed some warning prints.
-Default Mode Command: Updated to match new defaults (incl. creep_chance).
-Reset Defaults: Added shadowguy_creep_chance to list.

BIG UPDATE :)

Update: Apr 4 @ 5:42pm

Going back to this build because for some reason all my work in vscode has been deleted

Update: Apr 4 @ 5:14pm

broken update due to being stupid

Update: Apr 2 @ 11:06am

ADDED MULTIPLAYER!! LETS GOOOOOOOO