Player factions

Player factions

« posted: Apr 23, 2019, 01:49 PM »
Hi guys.

Since I updated to 1.4c I have had problems with changing the ind players to renegade faction when they spawn in.
This was done in the past by adding this addRating -10000 to the ini of player unit in eden.
Any help on this subject would be appreciated.

Thanks.

Re: Player factions

« Reply #1 posted: Apr 24, 2019, 01:05 AM »
I'm interested to know why you want to set indies to side renegade. However, if you put that line in client/functions/playersetupend.sqf it should do what you want.

Re: Player factions

« Reply #2 posted: Apr 24, 2019, 12:03 PM »
I need another faction because I have zombies in the mission that are inde.
So I need to add a If statement to check for INDEPENDENT and if so this addrating -9999
I spoke to somebody about this and they told me there is a loop that puts player on a positive rating.
Anyone know how I can fix this.

Re: Player factions

« Reply #3 posted: Apr 24, 2019, 10:56 PM »
Are you wanting the AI missions and the zombies to attack each other? If not then why not just set the zombies to CIV faction?

Re: Player factions

« Reply #4 posted: Apr 25, 2019, 01:31 AM »
In the past I had the zombies attacking everyone even other ai.

Re: Player factions

« Reply #5 posted: Apr 29, 2019, 03:39 AM »
All good I got that command to work to achieve 5 way conflict.

Re: Player factions

« Reply #6 posted: May 24, 2019, 07:50 AM »
if (!isServer) exitWith {};

diag_log "WASTELAND SERVER - Initializing Server Relations";

BLUFOR setFriend [BLUFOR, 1];
BLUFOR setFriend [OPFOR, 0];
BLUFOR setFriend [INDEPENDENT, 0];
BLUFOR setFriend [CIVILIAN, 0];

OPFOR setFriend [BLUFOR, 0];
OPFOR setFriend [OPFOR, 1];
OPFOR setFriend [INDEPENDENT, 0];
OPFOR setFriend [CIVILIAN, 0];

INDEPENDENT setFriend [BLUFOR, 0];
INDEPENDENT setFriend [OPFOR, 0];
INDEPENDENT setFriend [INDEPENDENT, 1];
INDEPENDENT setFriend [CIVILIAN, 0];

CIVILIAN setFriend [BLUFOR, 0];
CIVILIAN setFriend [OPFOR, 0];
CIVILIAN setFriend [INDEPENDENT, 0];
---------------------------------------------------------------------------------------------------------------------------------------------------------------

I tried this in the relations.sqf and it worked well but it prevented the players being able to pick up random spawned weapons and items and even prevented access to crates from missions.
Does anyone know why is this so and how could I get it to work with relations set like above or point me in the right direction.
I needed it set up like this to make the ai in the players group engage the mission ai.


Cheers!