Need your input on new entity
Post Reply
Quote
Re: Need your input on new entity
Posted by gia on Wed Dec 20th at 6:09pm 2006


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.




Quote
Re: Need your input on new entity
Posted by Captain P on Thu Dec 21st at 9:22pm 2006


Sounds like it could be used together with the logic_case entity? Never used that entity though... <img src=" SRC="images/smiles/icon_smile.gif">

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?






Quote
Re: Need your input on new entity
Posted by gia on Thu Dec 21st at 9:46pm 2006


Yes, thank you! I hadn't thought of such outputs (just increased/decreased). If anyone else has something to add please do.



Quote
Re: Need your input on new entity
Posted by Captain P on Thu Dec 21st at 10:15pm 2006


So for what mod are you creating this entity then? Just curious...<img src=" SRC="images/smiles/icon_smile.gif">





Quote
Re: Need your input on new entity
Posted by gia on Fri Dec 22nd at 4:11am 2006


http://www.pdark-mod.com/. I'll make a tut eventually so any mod can implement the entity.





Post Reply