.qc (dot qc) - the group for quake c coders of all denominations. If you make quake one mods and write code in quake c, join our group! I'll try to answer any quake c questions - please post your inquiry in the forums...

Forum Thread
  Posts  
On making monsters (Groups : qc : Forum : hard_code() : On making monsters) Locked
Thread Options
numbersix
numbersix quake-c coder++
Oct 28 2013 Anchor

So, I needed a target to test weapon fire.

I made:

/*QUAKED monster_silhouette (1 0 0) (-16 -16 -24) (16 16 40)
*/

Eventually I might make it look & act like a practice silhouette. For now it defaults to monster_army appearances.

But when I shoot it the engine does this:

Host_Error: SVVM_ExecuteProgram: QC function self.think is missing

I check after map spawn and self.think is walkmonster_start_go. Makes sense, I call walkmonster_start() to get it going.

Try again - no joy.

Why?

I did not set these:

self.th_stand = SUB_Null;
self.th_walk = SUB_Null;
self.th_run = SUB_Null;
self.th_missile = SUB_Null;
self.th_pain = SUB_Null;

except for:

self.th_die = silhouette_death;

So, the engine injects one of those (likely th_pain) into .think when anything with flags & FL_MONSTER is shot.

11.8.13 - Silhouette has a new skin:

Edited by: numbersix

Reply to thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.