Need your input on new entity

Need your input on new entity

Re: Need your input on new entity Posted by gia on Wed Dec 20th 2006 at 6:09pm
gia
3 posts
Posted 2006-12-20 6:09pm
gia
member
3 posts 0 snarkmarks Registered: Dec 18th 2006 Occupation: IT Location: Peru
<span style="color: white;">Hi, I want to retrieve the amount of max/current players in a map and allow logic to be performed by exposing the data to the entity input/output system available to level designers.

Implementing it (code) would be easy. I just have doubts as to how would this entity work to allow level designers get the best out of it. Less entities required to do some task, ease of use, etc.

If you think you have enough experience with the I/O system would you please reply with a wiki like definition for this entity?

I lack such experience hence this post.
</span>
Re: Need your input on new entity Posted by Captain P on Thu Dec 21st 2006 at 9:22pm
Captain P
1370 posts
Posted 2006-12-21 9:22pm
1370 posts 1995 snarkmarks Registered: Nov 6th 2003 Occupation: Game-programmer Location: Netherlands
Sounds like it could be used together with the logic_case entity? Never used that entity though... :smile:

I think it'd be usefull if you could trigger entities based on the current number of players or max. player count, as well as triggering entities when a player joins or disconnects. I think it can be usefull to lock off parts of a map when the max. player count is set to 8 instead of the 16 your map supports, for example, or to open up a few item hatches when the number of players grows beyond a certain count and close them when some people disconnect.

So, it could have the following outputs:

OnMaxPlayerCount(8/16/32/whatever other values):
Fires once at the start of the map, based on the max. player count set at the server.

OnPlayerCount(1-32):
Fires after someone connects or disconnects and the number of players equals the associated output.

OnPlayerConnect:
Fires when a player connects.

OnPlayerDisconnect:
Fires when a player disconnects.

Does that help you?
Create-ivity - a game development blog
Re: Need your input on new entity Posted by gia on Thu Dec 21st 2006 at 9:46pm
gia
3 posts
Posted 2006-12-21 9:46pm
gia
member
3 posts 0 snarkmarks Registered: Dec 18th 2006 Occupation: IT Location: Peru
<span style="color: white;">Yes, thank you! I hadn't thought of such outputs (just increased/decreased). If anyone else has something to add please do.</span>
Re: Need your input on new entity Posted by Captain P on Thu Dec 21st 2006 at 10:15pm
Captain P
1370 posts
Posted 2006-12-21 10:15pm
1370 posts 1995 snarkmarks Registered: Nov 6th 2003 Occupation: Game-programmer Location: Netherlands
So for what mod are you creating this entity then? Just curious... :smile:
Create-ivity - a game development blog
Re: Need your input on new entity Posted by gia on Fri Dec 22nd 2006 at 4:11am
gia
3 posts
Posted 2006-12-22 4:11am
gia
member
3 posts 0 snarkmarks Registered: Dec 18th 2006 Occupation: IT Location: Peru
<span style="color: white;">http://www.pdark-mod.com/. I'll make a tut eventually so any mod can implement the entity.
</span>