Teardown

Teardown

103 ratings
AI Drone testing
2
2
   
Award
Favorite
Favorited
Unfavorite
Type: Global, Spawn
File Size
Posted
Updated
1.005 MB
Jan 18, 2023 @ 11:17pm
Jan 24, 2023 @ 8:53pm
2 Change Notes ( view )

Subscribe to download
AI Drone testing

Description
I'm just testing AI for drones here. Spawn one into sandbox to see it in action for a bit, be a bit curious.

In seriousness I'm using the "Hrafn" drone as a testbed for interesting AI ideas, because I feel I could stand to up my AI game a bit more. No guarantees I follow through with any particular experiment. Also posts their current status in debug line since they're prototypes made to test different AI designs.

Different versions:
AI schedule: Basically like the Half Life schedule system, using a bunch of "tasks", such as setting the position to fly to, or doing an "attack", most of them very short, bundled up into order as a schedule, and with various conditions for interruption. Lua doesn't have innate class objects so I just use lookup tables to emulate them instead, normally they get wiped by quicksave and loads, but Autumnatic came up with a workaround for that and I hope that works. It has no weapons, just a noise maker for gun sounds to emulate aggro attacks. It flies around, it will investigate noises, and also has sight and will follow you and make noise at you if it sees you for long enough. Posts the active task to the debug log.

About AI schedules: https://twhl.info/wiki/page/VERC%3A_Half-Life_AI%2C_Schedules_and_Tasks

State stack: Similar to the robot.lua's state stack, with different AI states such as navigation, investigation, or combat can either be stacked or popped, or the entire stack cleared for a new one. I still used a lookup table and its required quickload workaround to store the different AI states. Still just uses a "gun" noisemaker, will investigate noises, and has sight. Posts the active state in the stack to the debug log.
53 Comments
CaptainChopsy Mar 19 @ 12:34pm 
░░░░░█▐▓▓░████▄▄▄█▀▄▓▓▓▌█ Help
░░░░░▄█▌▀▄▓▓▄▄▄▄▀▀▀▄▓▓▓▓▓▌█ Doge
░░░▄█▀▀▄▓█▓▓▓▓▓▓▓▓▓▓▓▓▀░▓▌█ Take
░░█▀▄▓▓▓███▓▓▓███▓▓▓▄░░▄▓▐█▌ Over
░█▌▓▓▓▀▀▓▓▓▓███▓▓▓▓▓▓▓▄▀▓▓▐█ Steam
▐█▐██▐░▄▓▓▓▓▓▀▄░▀▓▓▓▓▓▓▓▓▓▌█▌ Copy
█▌███▓▓▓▓▓▓▓▓▐░░▄▓▓███▓▓▓▄▀▐█ And
█▐█▓▀░░▀▓▓▓▓▓▓▓▓▓██████▓▓▓▓▐█ Paste
▌▓▄▌▀░▀░▐▀█▄▓▓██████████▓▓▓▌█▌Him
▌▓▓▓▄▄▀▀▓▓▓▀▓▓▓▓▓▓▓▓█▓█▓█▓▓▌█▌DO IT
█▐▓▓▓▓▓▓▄▄▄▓▓▓▓▓▓█▓█▓█▓█▓▓▓▐NOW
The Moss Man Oct 19, 2024 @ 2:25pm 
I love seeing the neat little things people get working in this game, awesome job already. Looking forward to if/when it goes further
bpl81uf Aug 19, 2024 @ 11:17am 
gvsgjhfrti7uw3t yusegyieuy
bhfilbhdfc
bpl81uf Aug 19, 2024 @ 11:16am 
chopchopz
bpl81uf Aug 15, 2024 @ 11:41pm 
he said it dose not have pew pews
bpl81uf Jul 20, 2024 @ 12:44am 
add guns to da drone
_Jutka_ Jul 19, 2024 @ 7:47am 
is a mini balilisco V2
cianosaur Jun 19, 2024 @ 7:44am 
░░░░░█▐▓▓░████▄▄▄█▀▄▓▓▓▌█ Help
░░░░░▄█▌▀▄▓▓▄▄▄▄▀▀▀▄▓▓▓▓▓▌█ Doge
░░░▄█▀▀▄▓█▓▓▓▓▓▓▓▓▓▓▓▓▀░▓▌█ Take
░░█▀▄▓▓▓███▓▓▓███▓▓▓▄░░▄▓▐█▌ Over
░█▌▓▓▓▀▀▓▓▓▓███▓▓▓▓▓▓▓▄▀▓▓▐█ Steam
▐█▐██▐░▄▓▓▓▓▓▀▄░▀▓▓▓▓▓▓▓▓▓▌█▌ Copy
█▌███▓▓▓▓▓▓▓▓▐░░▄▓▓███▓▓▓▄▀▐█ And
█▐█▓▀░░▀▓▓▓▓▓▓▓▓▓██████▓▓▓▓▐█ Paste
▌▓▄▌▀░▀░▐▀█▄▓▓██████████▓▓▓▌█▌Him
▌▓▓▓▄▄▀▀▓▓▓▀▓▓▓▓▓▓▓▓█▓█▓█▓▓▌█▌DO IT
█▐▓▓▓▓▓▓▄▄▄▓▓▓▓▓▓█▓█▓█▓█▓▓▓▐NOW
adriana.bramlett Jun 3, 2024 @ 10:17am 
this is the end for robots. *blows up drones*
allison.white214 Feb 23, 2024 @ 3:32pm 
hunger games
hovercraft?