i talked to aardappel and he said it was ok if i used decompiled code. i have changed it a bit though.Baker wrote:DMSP is a mod that spawns monsters in deathmatch maps, which is why it is called DMSP. (Deathmatch single player). http://strlen.com/maps/dmsp/index.html
Back story done, continuing ... this mod spawns monsters out of thin air.
1) dmsp.qc thread: http://forums.inside3d.com/viewtopic.php?t=2587 where hondobondo shares dmsp.qc which I guess he got from Aardappel.
2) This .qc file is in the download here: http://www.moddb.com/members/hondobondo ... collection
(1) the monster stuff has to be precached
(2) when you spawn the monster you have to call the telefrag function
(3) this code dmsp.qc cycles through info_player_deathmatch locations to find empty spots
(4) then entity = spawn(); pretty easy
i hate reinventing the wheel. i dont know why anyone would want to do that. it works pretty flawlessly. you can set it up to spawn monsters from any entity origin, hardcoded to the map or whatever.