PDA

View Full Version : Join In Progress enhancement



Terox
Feb 20 2007, 17:22
I have been thinking about the implementation of additional functionality of JIP from a server admin perspective.

Off the top of my head, such abilities as being able to decide the following, if the mission maker deems the mission requires it:
<ul>a) Select which side a Player should spawn into
b) Select which unit/group a Player should spawn into
c) Select where the Player should start from after initial spawn
d) Hold J.I.P Players in "stasis" until a "reinforcement phase"
e) dealing with unruly players, other than kick/ban[/list]

and a miriad of other possibilities that could be opened up.

All this of course can be scripted by the mission maker, addon maker apart from identifying the Admin

The problem: There is no automated way to define who is the ADMIN to attach such a control (e.g dialogue) too
?(LOCAL ADMIN):

So it makes it very difficult to create an automated system, eg an addon utilising a gamelogic

Of course this kind of control could be assigned to a specific playable slot, which would give the player the "Command Dialogue" at mission start, however this would not be the ideal solution


I am sure the Multiplayer community admins would find such functionality a great asset.

I have no idea what / how much work would be required by the Devs to implement such a command, but i am sure it would be greatly appreciated.
There is obviously already some underlying engine code to identify the admin for reassigns etc


So whats the chance ??

lwlooz
Feb 20 2007, 17:36
If I understand yours post correctly, you are requesting a way to check if any player in an MP game is an admin or not.
Sort of an "IsAdmin"(IsVotedAdmin) command.

I think that would be a great addition and I don&#39;t believe it would that difficult to check engine wise,considering your client knows it anyways ,otherwise you couldn&#39;t do the command line admin functions.

I personally like with most scripting request for enhanced MP scripting think its a great idea.And you could do most stuff you listed there script-wise then.

Also an ability for the admin to ingame lock/unlock playable slots seems a good idea to me.
This could be either achieved by a constant access to the reassignment-screen with an additional option to lock slots there or script-wise to enhance the setPlayable command to also be able to make slots unplayable.

In general I think it would help JIP a lot if the OnPlayerConnected/OnPlayerDisconnected eventhandlers would also pass the object a new player joined into or disconnected from. [Before anyone tells me this "Hey,you can ask who he joined into by player",that is impossible on the server where OnPlayerConnected,Disconnected are fired].
Edit: Also it might be useful to take a look at the "_id" thing,seems broken

Terox
Feb 20 2007, 17:49
OnPlayerConnected,Disconnected firing on the server only eh?

That could be a problem for JIP implemented systems

this is where a network services solution would be of great value

IceBreakr
Feb 21 2007, 07:18
It would help a lot if BIS implemented "password for selecting one side" option.

Pennywise
Feb 22 2007, 04:26
Here is an easy work around for executing onPlayerConnected on all clients:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
MY_JIP=&#34;player globalChat _name; if &#40;&#40;name player&#41; == _name&#41; then {call compile loadfile &#34;&#34;yourscript.sqf&#34;&#34;;};&#34;;
onPlayerConnected &#34;&#91;&#93; spawn compile MY_JIP&#34;;
[/QUOTE]

However, I haven&#39;t tested this on newer clients 1.4 and up, but it works on 1.2.

IceBreakr
Feb 26 2007, 07:49
Any ideas how to put teammembers (based on squad.xml?) on one side and all other joining player to the other? Or if a random player picks the wrong side, he gets kicked/killed?

Terox
Feb 26 2007, 13:39
Any ideas how to put teammembers (based on squad.xml?) on one side and all other joining player to the other? Or if a random player picks the wrong side, he gets kicked/killed?
if they ever implement this, then you could use an array of your squads player names to filter this, however it is my experience, that if you are running a server and all your squad is on one side, it wont stay popular for long. You really need to split your team up evenly to create a fair game