Page 1 of 1

Squad Command of npc_citizen

Posted: Mon Sep 07, 2009 9:00 pm
by shiftey
How exactly does this work? Will the npc_citizens follow whatever player gives them orders or does only one player get squad leader status?

If only one player can give a squad orders, how can you switch it to another player and what determines which player on the server is given command of the rebel squad?

Posted: Tue Sep 08, 2009 8:11 am
by fug4life
This is a bit of a mystery,

Some people think its the first player that joins, or could be the second player as then the game effectively becomes multiplayer.
Or if no other players are in the same vis_leaf (but then on DaMaNs return to c17 showd this isnt the case).

Who knows, but using the wildcard (*) for activator may help i.e

!activator*

Posted: Tue Sep 08, 2009 11:35 am
by Ny
Like fug said I had always thought it was the first player that joined that was given the command status however r2c17 showed me different.

However I have had a theory that worked in oc_warmachine where the rebel's AI worked on the first sighting of "Gordon Freeman" allowed that player to become their squad commander, although I am not sure this works in r2c17

Posted: Tue Sep 08, 2009 6:21 pm
by shiftey
Well if that's the case, then I will have to have the team choose who they want as squad leader of the rebels using !activator like fug said.

Now my problem is determining how to get players to vote for who the SL should be. This is a very minuet part of the map so I don't want big retarded signs and stuff, more along the lines of something realistic. A hud vote system would be awesome but that doesnt look like its going to happen soon.

Posted: Tue Sep 08, 2009 10:34 pm
by fug4life
I'd recommend whipping up a test map that you can go online with somebody, before you get too deep.

Posted: Wed Sep 09, 2009 12:18 am
by skidz
This feature is something OC has always lacked. Setting up your own system by for instance telling npcs to follow you when you press 'use' on them is a good way to make player squads.

The system valve has relies on player index 1 I believe, and the hud element isn't per player either.