How to add monsters to a multiplayer deathmatch game?

How to add monsters to a multiplayer deathmatch game?

Re: How to add monsters to a multiplayer deathmatch game? Posted by Necromancer on Sun Mar 18th 2012 at 10:27pm
Necromancer
392 posts
Posted 2012-03-18 10:27pm
392 posts 1499 snarkmarks Registered: May 5th 2008
How do you add monsters to a multiplayer game? Like in the original half-life, the level Snarkpit, when you push the button and the snarks spawn in from the pipe. I tried decompiling it but still cannot find out how they did it. Whenever I try to put monsters in and when I play in multiplayer they do not show up. Thanks.
Re: How to add monsters to a multiplayer deathmatch game? Posted by Niborius on Sun Mar 18th 2012 at 10:42pm
Niborius
1007 posts
Posted 2012-03-18 10:42pm
Niborius
member
1007 posts 1116 snarkmarks Registered: Mar 23rd 2009 Location: The Netherlands
It's done by using the "monstermaker" entity. I'll help you further tomorrow, then I have some time :)
Youtube Channel: https://www.youtube.com/c/Nibgames
Re: How to add monsters to a multiplayer deathmatch game? Posted by Necromancer on Mon Mar 19th 2012 at 12:02am
Necromancer
392 posts
Posted 2012-03-19 12:02am
392 posts 1499 snarkmarks Registered: May 5th 2008
Yes, I will need your help more, because I tried using the monstermaker entity and the monsters still do not work.
Re: How to add monsters to a multiplayer deathmatch game? Posted by Niborius on Wed Mar 21st 2012 at 9:19pm
Niborius
1007 posts
Posted 2012-03-21 9:19pm
Niborius
member
1007 posts 1116 snarkmarks Registered: Mar 23rd 2009 Location: The Netherlands
Ohh sorry I haven't gotten back to you, I'll be honest I didn't really think about it anymore. Sorry!

I got it to work on my map, this may help a bit: http://twhl.info/entity.php?id=210

In the entities properties, the name of the monster you want to spawn should go into the "monstertype" box. For example: monster_snark

Just let me know when you still can't get it to work.

Oh by the way, it doesn't work with some mods, like Botman's Bots that I used in the past.
Youtube Channel: https://www.youtube.com/c/Nibgames
Re: How to add monsters to a multiplayer deathmatch game? Posted by Necromancer on Thu Mar 22nd 2012 at 3:32am
Necromancer
392 posts
Posted 2012-03-22 3:32am
392 posts 1499 snarkmarks Registered: May 5th 2008
I was able to get it to work with the snarks. BUT I was not able to get it to work with headcrabs or zombies, which is what I really wanted. Is there any way to make it work for these monsters as well and not only just for snarks? Thanks.
Oh by the way, it doesn't work with some mods, like Botman's Bots that I used in the past.
This is for Half-Life Opposing Force.
Re: How to add monsters to a multiplayer deathmatch game? Posted by Niborius on Fri Mar 23rd 2012 at 9:40pm
Niborius
1007 posts
Posted 2012-03-23 9:40pm
Niborius
member
1007 posts 1116 snarkmarks Registered: Mar 23rd 2009 Location: The Netherlands
Hmm that's odd. So, "monster_headcrab" didn't do the trick?

I hope someone else comes in to help you here, as I have no idea what to try next. I'm sorry! :uncertain:
Youtube Channel: https://www.youtube.com/c/Nibgames
Re: How to add monsters to a multiplayer deathmatch game? Posted by Necromancer on Fri Mar 23rd 2012 at 11:06pm
Necromancer
392 posts
Posted 2012-03-23 11:06pm
392 posts 1499 snarkmarks Registered: May 5th 2008
So, "monster_headcrab" didn't do the trick?
Unfortunately no. But thanks for your help though, the snarks worked, but not the others. Maybe they're not allowed in MP. No idea why though.
Re: How to add monsters to a multiplayer deathmatch game? Posted by omegaslayer on Thu Mar 29th 2012 at 6:18am
omegaslayer
2481 posts
Posted 2012-03-29 6:18am
2481 posts 595 snarkmarks Registered: Jan 16th 2004 Occupation: Sr. DevOPS Engineer Location: Seattle, WA
I don't think there is AI that's programmed into mutltiplayer. I think in the case of the snarkpit map it spawns the output of the snark "weapon" and it goes from there. So I don't think you can add npcs to the level - the network synchronization over AI states would be a nightmare to code, so therefore npcs aren't possible in hl1.
Posting And You
Re: How to add monsters to a multiplayer deathmatch game? Posted by Necromancer on Fri Mar 30th 2012 at 4:13am
Necromancer
392 posts
Posted 2012-03-30 4:13am
392 posts 1499 snarkmarks Registered: May 5th 2008
Thanks. That helps a lot.
Re: How to add monsters to a multiplayer deathmatch game? Posted by Niborius on Fri Mar 30th 2012 at 3:28pm
Niborius
1007 posts
Posted 2012-03-30 3:28pm
Niborius
member
1007 posts 1116 snarkmarks Registered: Mar 23rd 2009 Location: The Netherlands
omegaslayer said:
I don't think there is AI that's programmed into mutltiplayer. I think in the case of the snarkpit map it spawns the output of the snark "weapon" and it goes from there. So I don't think you can add npcs to the level - the network synchronization over AI states would be a nightmare to code, so therefore npcs aren't possible in hl1.
In my map, I used a monstermaker as well to spawn the snarks.

Or does that not say anything?
Youtube Channel: https://www.youtube.com/c/Nibgames
Re: How to add monsters to a multiplayer deathmatch game? Posted by omegaslayer on Fri Apr 6th 2012 at 3:43am
omegaslayer
2481 posts
Posted 2012-04-06 3:43am
2481 posts 595 snarkmarks Registered: Jan 16th 2004 Occupation: Sr. DevOPS Engineer Location: Seattle, WA
Niborius said:
In my map, I used a monstermaker as well to spawn the snarks.

Or does that not say anything?
But snarks are weapon items. There is AI for weapon snarks in multiplayer.
Posting And You
Re: How to add monsters to a multiplayer deathmatch game? Posted by Niborius on Fri Apr 6th 2012 at 7:29am
Niborius
1007 posts
Posted 2012-04-06 7:29am
Niborius
member
1007 posts 1116 snarkmarks Registered: Mar 23rd 2009 Location: The Netherlands
No that is true but I was just pointing out that I got it to work using the monstermaker, I didn't know if that was against your theory or not.

I think monster_tentacle is also available in multiplayer by the way, but I am not entirely sure.
Youtube Channel: https://www.youtube.com/c/Nibgames
Re: How to add monsters to a multiplayer deathmatch game? Posted by omegaslayer on Fri Apr 6th 2012 at 8:06am
omegaslayer
2481 posts
Posted 2012-04-06 8:06am
2481 posts 595 snarkmarks Registered: Jan 16th 2004 Occupation: Sr. DevOPS Engineer Location: Seattle, WA
Niborius said:
No that is true but I was just pointing out that I got it to work using the monstermaker, I didn't know if that was against your theory or not.

I think monster_tentacle is also available in multiplayer by the way, but I am not entirely sure.
It is - and thats how snarks are able to spawn from the map. But you can't spawn just any old NPC.
Posting And You
Re: How to add monsters to a multiplayer deathmatch game? Posted by GrimlocK on Sat Dec 22nd 2012 at 5:51am
GrimlocK
386 posts
Posted 2012-12-22 5:51am
GrimlocK
member
386 posts 259 snarkmarks Registered: Mar 7th 2002 Occupation: Self Employed Location: Texas
I know this is an old topic but I had to correct the misconception that only snarks work in MP. I have had just about all of the monsters in MP. The trick is to first set up the entities correctly and while testing the map type mp_allowmonsters 1, then restart the map. type restart in console. I'll see if I can find the time to post the entity set up in the near future. BTW maps ran on a dedicated server have allow monsters set to 1 as a default, its when you run the map on your pc while playing it is set to 0. Snarks work either way because they are also a weapon.
Re: How to add monsters to a multiplayer deathmatch game? Posted by Necromancer on Mon Dec 24th 2012 at 5:00am
Necromancer
392 posts
Posted 2012-12-24 5:00am
392 posts 1499 snarkmarks Registered: May 5th 2008
Also, is there a way to make it so that players cannot hurt each other in multiplayer if you want a strict coop map? (Although SvenCoop would probably be a better choice anyway though)

I believe when I posted this question I did not even have SvenCoop yet, so you don't have to post the entity setup. I actually have gone back to mapping for single player projects now. I go through phases, but now it's off to single player!
Re: How to add monsters to a multiplayer deathmatch game? Posted by the-middleman on Sun Dec 30th 2012 at 11:22am
the-middleman
3 posts
Posted 2012-12-30 11:22am
3 posts 0 snarkmarks Registered: Dec 5th 2012
Hi! Afaik you just need mp_allowmonsters 1 and then all monster-entities should work perfectly fine in multiplayer.