Garry's Mod

Garry's Mod

Advanced Shadow Guy Nextbot [Highly Intelligent AI]
Showing 1-10 of 27 entries
< 1  2  3 >
Update: 4 Sep @ 1:58am

-Fixed another small oversight with avoidance

Update: 4 Sep @ 12:57am

-Fixed small oversight with avoidance

Update: 4 Sep @ 12:34am

=Polish Update=
-Readded the Unknown entity has entered your world print
-New door and sprint detection
-Changed model to Charple fixing visibility issues in water and view
-Improved clue management
-Very close spawn from 0.10 to 0.05
-Raised min spawn distance to 135 from 75(to prevent spawn in face kills)
-Large spawn from 0.20 to 0.25
-Creep chance from 0.75 to 0.80
-Unfreezes player frozen props on contact
-Proper and Better clue following to ensure he reaches clues
-Chance to flip indoor outdoor spawn
-Creeps in forward direction bias to allow proper movement in creep
-When outside detection range path to player every 8-16s until in detection range
-Overhauled Creep player sneak up and tracking
-Improved Navigation(Near door slowdown to prevent overshooting doors constantly, intuitive unstucking, other fixes)
-Increased Chase/Charge/Creep durations slightly
-Better Door Handling(now checks all states)
-Improved Avoidance to account for different heights and props
-Has variable detection chance
-Fixed Lots of small issues

Update: 14 Aug @ 12:34am

-Super Minor Fix

Update: 14 Aug @ 12:10am

IGNORE

Update: 13 Aug @ 11:05am

-Locomotion fixes
-Creep fixes

Update: 13 Aug @ 7:45am

-Minor Adjustment

Update: 13 Aug @ 7:02am

-Massive bugfix and general smoothness update

Update: 11 Aug @ 12:35am

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

Update: 10 Aug @ 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(Main feature)

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: 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.
-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.
-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.
-Default Mode Command: Updated to match new defaults (incl. creep_chance).
-Reset Defaults: Added shadowguy_creep_chance to list.

BIG UPDATE :)