How to make npc's Created 1 year ago2023-02-07 04:05:41 UTC by closed closed

Created 1 year ago2023-02-07 04:05:41 UTC by closed closed

Posted 1 year ago2023-02-07 04:05:41 UTC Post #347306
I have seen this page https://twhl.info/wiki/page/Tutorial%3A_Coding_NPCs_in_GoldSrc

but its not helpful enough for me

how do i make a simple bird npc that just loops trough some idle animations

and on death, plays a death animation

the model name is dove.mdl
the texturename is doveside.bmp
and the animations are ACT_IDLE 1-5
Posted 1 year ago2023-02-07 15:45:37 UTC Post #347307
Depending on what you really need, you don't even need an NPC (CBaseMonster), really. You can inherit from CBaseAnimating and handle animation switching manually.

In any case, you can also look into monster_generic's code, you'll find a brutally simple monster example there. (genericmonster.cpp)
Also look into the monsters programming chapter in TWHL's programming book: Monsters Programming - The Concepts of Half-Life's AI
Admer456 Admer456If it ain't broken, don't fox it!
Posted 1 year ago2023-02-10 23:50:12 UTC Post #347326
Thanks
You must be logged in to post a response.