Garry's Mod

Garry's Mod

Advanced Shadow Guy Nextbot [Highly Intelligent AI]
Viser 1-10 af 24 forekomster
< 1  2  3 >
Opdatering: 14. aug. kl. 0:34

-Super Minor Fix

Opdatering: 14. aug. kl. 0:10

IGNORE

Opdatering: 13. aug. kl. 11:05

-Locomotion fixes
-Creep fixes

Opdatering: 13. aug. kl. 7:45

-Minor Adjustment

Opdatering: 13. aug. kl. 7:02

-Massive bugfix and general smoothness update

Opdatering: 11. aug. kl. 0:35

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

Opdatering: 10. aug. kl. 0:29

=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 :)

Opdatering: 4. apr. kl. 17:42

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

Opdatering: 4. apr. kl. 17:14

broken update due to being stupid

Opdatering: 2. apr. kl. 11:06

ADDED MULTIPLAYER!! LETS GOOOOOOOO