Weapon Sway + Map town marker remove + Player score resets on restart?

I know I'm trying to cram 3 topics into one...  If at least on can get answered, that'd be great.
(Hoping a smarty pants will come along :D)

I don't understand how to get rid of weapon way.  I read to put
"player addMPEventhandler ["MPRespawn", {player setCustomAimCoef 0.1}];"
"player addEventHandler ["Respawn", {player setUnitRecoilCoefficient 0.1}];"
In the main init.sqf?  Which I don't really now which one that is.  So I put it in the one that is in the "A3Wasteland_settings" folder.

I would like to remove the blue circles around towns you can spawn in.  Have not seen such a topic and have looked though my server files/A3 mission

Every time the server restarts, player score resets.  But they stay in the mysql database.  How to get it to load every server start?

...Just remembered, every time I go to respawn I get the No entry 'mpmissions\__CUR_MP.Stratis\description.ext/RespawnSelectionDialog/Controls/RspnLocMap.LineMarker'.

Thanks,
    Higgins909
Stat perma
https://dl.dropboxusercontent.com/u/134406110/aide.PNG
Weapon Sway + Map town marker remove + Player score resets on restart?
  • Offline Matt76
  • Mercenary
  • *****
  • Posts: 418
  • co founder of customcombatgaming.com
So many things your end would be fixed if you used the latest commit off Revs GitHub,

Apart from weapon way which needs tweaking in playersetupend.sqf off the top of my head as I'm not at my pc
  • Offline dekela
  • First Blood
  • ***
  • Posts: 79
I don't understand how to get rid of weapon way.  I read to put
"player addMPEventhandler ["MPRespawn", {player setCustomAimCoef 0.1}];"
"player addEventHandler ["Respawn", {player setUnitRecoilCoefficient 0.1}];"
In the main init.sqf?  Which I don't really now which one that is.  So I put it in the one that is in the "A3Wasteland_settings" folder.

edit the init.sqf inside the pbo, not in A3_Wasteland_settings. Find the following part of code and add in
player setCustomAimCoef 0.2;
player addEventhandler ["Respawn", {player setCustomAimCoef 0.2;}];


Code: [Select]
if (!isDedicated) then
{
[] spawn
{
if (hasInterface) then // Normal player
{
9999 cutText ["Welcome to A3Wasteland, please wait for your client to initialize", "BLACK", 0.01];

waitUntil {!isNull player};
player setVariable ["playerSpawning", true, true];
playerSpawning = true;

removeAllWeapons player;
client_initEH = player addEventHandler ["Respawn", { removeAllWeapons (_this select 0) }];

// Reset group & side
[player] joinSilent createGroup playerSide;
player setCustomAimCoef 0.2;
player addEventhandler ["Respawn", {player setCustomAimCoef 0.2;}];
execVM "client\init.sqf";

if ((vehicleVarName player) select [0,17] == "BIS_fnc_objectVar") then { player setVehicleVarName "" }; // undo useless crap added by BIS
}
else // Headless
{
waitUntil {!isNull player};
if (getText (configFile >> "CfgVehicles" >> typeOf player >> "simulation") == "headlessclient") then
{
execVM "client\headless\init.sqf";
};
};
};
};

Change 0.2 to your liking, lower less sway, higher more sway
  • Offline Matt76
  • Mercenary
  • *****
  • Posts: 418
  • co founder of customcombatgaming.com
Well i possibly don't agree with the placement of it in the init, but i guess each to there own.

i have this in the playersetupstart.sqf as below -

Code: [Select]
// ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com *
// ******************************************************************************************
// @file Name: playerSetupStart.sqf
// @file Author: [GoT] JoSchaap, AgentRev

private "_player";
_player = _this;

_player setSkill 0;
{_player disableAI _x} foreach ["move","anim","target","autotarget"];
_player setVariable ["BIS_noCoreConversations", true];
_player setVariable ["A3W_corpseEjected", nil, true];
_player allowDamage false;
[_player, true] call fn_hideObjectGlobal;
//_player enableSimulation false;

if (["A3W_unlimitedStamina"] call isConfigOn) then
{
_player enableFatigue false;
_player enableStamina false;
_player allowSprint true;
  _player setCustomAimCoef 0.1;
};

enableSentences false;

removeAllWeapons _player;
removeUniform _player;
removeVest _player;
removeBackpack _player;
removeGoggles _player;
removeHeadgear _player;
  • Offline AgentRev
  • Developer
  • Veteran
  • ******
  • Posts: 2571
just a side note, addMPEventHandler is absolute cancer and should never have been added to the game in the first place; if I find out somebody willingly uses it for something they made themselves, I will personally banish them to hell.