.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...
Posts | ||
---|---|---|
Random monsters - the count | Locked | |
Thread Options | ||
|
Dec 6 2013 Anchor | |
The wandering monster is a concept from roleplaying games - an unplanned encounter with random consequences. With a slight retool of quake-c you can have random monsters in singleplayer or deathmatch. Here we will cover updating the clients total monster count. // defs.qc: float total_monsters; // hipdefs.qc - defined for the horn of conjuring float STAT_TOTALMONSTERS = 12; You can have the server tell how many random monsters you have made: // this code is contained in a function that makes a random monster float t_monsters; // save count - *_monster_start() functions bumps the count and we might fail this monster attempt in our code t_monsters = total_monsters; // // at this point we have made a new monster // builtin function used to send network messages to the clients WriteByte (MSG_BROADCAST, SVC_UPDATESTAT); Edited by: numbersix |
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.