Skip to content

Commit

Permalink
some basic ai implemented
Browse files Browse the repository at this point in the history
ai now roams the map using nodes, has the ability to sprint and can crouch. a custom animation graph has also been made for the citizen to support all these features!
  • Loading branch information
TheHuntsmanbuh committed Aug 15, 2024
1 parent d3fd6ee commit fe91220
Show file tree
Hide file tree
Showing 102 changed files with 95,444 additions and 32 deletions.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Half-Life Alyx/game/hlvr_addons/smartnet/_vrad3/ao.exr
Binary file not shown.
Binary file modified Half-Life Alyx/game/hlvr_addons/smartnet/_vrad3/ao_noisy.exr
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Half-Life Alyx/game/hlvr_addons/smartnet/_vrad3/lightmap.exr
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Half-Life Alyx/game/hlvr_addons/smartnet/_vrad3/normal.exr
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file modified Half-Life Alyx/game/hlvr_addons/smartnet/_vrad3/scene_info.dat
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Half-Life Alyx/game/hlvr_addons/smartnet/_vrad3/shradiance_b.exr
Binary file not shown.
Binary file modified Half-Life Alyx/game/hlvr_addons/smartnet/_vrad3/shradiance_g.exr
Binary file not shown.
Binary file modified Half-Life Alyx/game/hlvr_addons/smartnet/_vrad3/shradiance_r.exr
Binary file not shown.
Binary file modified Half-Life Alyx/game/hlvr_addons/smartnet/_vrad3/tangent.exr
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ end
local rds = 256
local flNavGoalTolerance = 32
local bShouldRun = true
local bShouldrunning = true
-- the closest this npc can get to the goal
local flMinGoalDist = 64
-- the farthest this npc can get to the goal
Expand All @@ -34,7 +35,7 @@ local flMaxGoalDist = 250
-- put all the main npc stuff in here
-------------------------------------
function citizenroam()
local goaltable = Entities:FindAllByNameWithin("smnav", thisEntity:GetForwardVector(), 512 )
local goaltable = Entities:FindAllByNameWithin("snnav", thisEntity:GetForwardVector(), 512 )
print (goaltable)
local whereto = goaltable[math.random(#goaltable)]
setrandomlooktarget(rds)
Expand Down
Binary file modified Half-Life Alyx/game/hlvr_addons/smartnet/tools_asset_info.bin
Binary file not shown.
Binary file not shown.

0 comments on commit fe91220

Please sign in to comment.