Jump to content

[Request] warm clothes & white ghillie for namalsk


UKSS

Recommended Posts

  • 3 weeks later...
  • 1 month later...

I just recently started a Namalsk overpoch server and I Have got a bunch of mods on it so far but I am having a hard time trying to get warm clothing to work. I have done everything this thing has told me to do. I got the warming clothing so it spawns in the loot table, and it can spawn with a load-out. I don't get any errors. However when i go to put it on I will right click "wear warm clothing" and then nothing happens. I try again and it sways I am already changing clothes and is stuck there.  If you had any idea I would greatly appreciate it. 

Link to comment
Share on other sites

  • 7 months later...

I just recently started a Namalsk overpoch server and I Have got a bunch of mods on it so far but I am having a hard time trying to get warm clothing to work. I have done everything this thing has told me to do. I got the warming clothing so it spawns in the loot table, and it can spawn with a load-out. I don't get any errors. However when i go to put it on I will right click "wear warm clothing" and then nothing happens. I try again and it sways I am already changing clothes and is stuck there.  If you had any idea I would greatly appreciate it. 

 

Going to bump up an old post here because I am having this same issue. Any thoughts?

Link to comment
Share on other sites

Yeah, I know. I've already done that.

 

You have the cfgsurvival.hpp edited and in mission root also?

If not, pull it from client files, add it to mission root, add the items below to bottom of file and add #include "cfgSurvival.hpp" to description.ext under enableItemsDropping = 0;

                class Skin_CamoWinter_DZN : Default {
			sex = "male";
			playerModel = "CamoWinter_DZN";
		};
		
		class Skin_CamoWinterW_DZN : Default {
			sex = "male";
			playerModel = "CamoWinterW_DZN";
		};
		
		class Skin_Sniper1W_DZN : Default {
			sex = "male";
			playerModel = "Sniper1W_DZN";
		};
Link to comment
Share on other sites

 

You have the cfgsurvival.hpp edited and in mission root also?

If not, pull it from client files, add it to mission root, add the items below to bottom of file and add #include "cfgSurvival.hpp" to description.ext under enableItemsDropping = 0;

                class Skin_CamoWinter_DZN : Default {
			sex = "male";
			playerModel = "CamoWinter_DZN";
		};
		
		class Skin_CamoWinterW_DZN : Default {
			sex = "male";
			playerModel = "CamoWinterW_DZN";
		};
		
		class Skin_Sniper1W_DZN : Default {
			sex = "male";
			playerModel = "Sniper1W_DZN";
		};

 

Yes, I do. 

Link to comment
Share on other sites

Ok, you have player_wearClothes.sqf in mission root and called from a custom compiles?

 

 

private ["_item","_onLadder","_hasclothesitem","_config","_text","_myModel","_itemNew","_currentSex","_newSex","_model","_playerNear];

if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_83") , "PLAIN DOWN"] };
DZE_ActionInProgress = true;

_item = _this;
call gear_ui_init;

_onLadder =		(getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
if (_onLadder) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_player_21") , "PLAIN DOWN"]};

_hasclothesitem = _this in magazines player;
_config = configFile >> "CfgMagazines";
_text = getText (_config >> _item >> "displayName");

if (!_hasclothesitem) exitWith { DZE_ActionInProgress = false; cutText [format[(localize "str_player_31"),_text,"wear"] , "PLAIN DOWN"]};

if (vehicle player != player) exitWith { DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_85"), "PLAIN DOWN"]};

if (!isNull (unitBackpack player)) exitWith { DZE_ActionInProgress = false; cutText [("<Anti-Dupe> drop backpack to change clothes"), "PLAIN DOWN"] };

if ("CSGAS" in (magazines player)) exitWith { DZE_ActionInProgress = false; cutText [(localize "STR_EPOCH_ACTIONS_10"), "PLAIN DOWN"] };

_myModel = (typeOf player);
_itemNew = "Skin_" + _myModel;

//diag_log ("Debug Clothes: model In: " + str(_itemNew) + " Out: " + str(_item));

if ( (isClass(_config >> _itemNew)) ) then {
	if ( (isClass(_config >> _item)) ) then {
		// Current sex of player skin
		
		_currentSex = getText (missionconfigFile >> "CfgSurvival" >> "Skins" >> _itemNew >> "sex");
		// Sex of new skin
		_newSex = getText (missionconfigFile >> "CfgSurvival" >> "Skins" >> _item >> "sex");
		//diag_log ("Debug Clothes: sex In: " + str(_currentSex) + " Out: " + str(_newSex));

		if(_currentSex == _newSex) then {
			// Get model name from config
			_model = getText (missionconfigFile >> "CfgSurvival" >> "Skins" >> _item >> "playerModel");
			if (_model != _myModel) then {
				if(([player,_item] call BIS_fnc_invRemove) == 1) then {
					player addMagazine _itemNew;
					[dayz_playerUID,dayz_characterID,_model] spawn player_humanityMorph;
				};
			};

		} else {
			cutText [(localize "str_epoch_player_86"), "PLAIN DOWN"];
		};
	};
};
DZE_ActionInProgress = false;

Link to comment
Share on other sites

  • 8 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×
×
  • Create New...