AlexanderKolitt
Member
Is it possible to script in different skins for a private hive Dayz.st server???
I mean, on Origins right, you got like loads of different skins for the various hero/bandit levels.
1 -Is it possible to add some of these skins into my server?
http://community.bistudio.com/wiki/ArmA_2:_Infantry
-Secondly, if it's possible, can I also make it so that if you become hero (5000+) humanity, you get a different skin? Like a cooler skin?
- And also, can I edit in more "humanity" levels like in Origins?
2 - I would like to know if I can add the skins as spawnable/dropped loot, like a tin of beans or a ghillie suit.
- And if I can change the spawnrate of them, and in which environment the various skins spawns, like residential, military, industrial etc.
***************************** SKIN CODE? **************************************
Found some codes about it, but not sure if they work, or what needs to be changed.
I mean, on Origins right, you got like loads of different skins for the various hero/bandit levels.
1 -Is it possible to add some of these skins into my server?
http://community.bistudio.com/wiki/ArmA_2:_Infantry
-Secondly, if it's possible, can I also make it so that if you become hero (5000+) humanity, you get a different skin? Like a cooler skin?
- And also, can I edit in more "humanity" levels like in Origins?
2 - I would like to know if I can add the skins as spawnable/dropped loot, like a tin of beans or a ghillie suit.
- And if I can change the spawnrate of them, and in which environment the various skins spawns, like residential, military, industrial etc.
***************************** SKIN CODE? **************************************
Found some codes about it, but not sure if they work, or what needs to be changed.
Code:
Required files to remove humanity morphing:
client files > dayz_code.pbo > actions > player_wearClothes.sqf
To remove the morphing function find this segment:
_humanity = player getVariable ["humanity",0];
switch (_item) do {
case "Skin_Sniper1_DZ": {
[dayz_playerUID,dayz_characterID,"Sniper1_DZ"] spawn player_humanityMorph;
};
case "Skin_Camo1_DZ": {
[dayz_playerUID,dayz_characterID,"Camo1_DZ"] spawn player_humanityMorph;
};
case "Skin_Survivor2_DZ": {
_model = "Survivor2_DZ";
if (_humanity < -2000) then {
_model = "Bandit1_DZ";
};
if (_humanity > 5000) then {
_model = "Survivor3_DZ";
};
[dayz_playerUID,dayz_characterID,_model] spawn player_humanityMorph;
};
case "Skin_Soldier1_DZ": {
[dayz_playerUID,dayz_characterID,"Soldier1_DZ"] spawn player_humanityMorph;
};
};
Make it look like this:
[code]_humanity = player getVariable ["humanity",0];
switch (_item) do {
case "Skin_Sniper1_DZ": {
[dayz_playerUID,dayz_characterID,"Sniper1_DZ"] spawn player_humanityMorph;
};
case "Skin_Camo1_DZ": {
[dayz_playerUID,dayz_characterID,"Camo1_DZ"] spawn player_humanityMorph;
};
case "Skin_Survivor2_DZ": {
[dayz_playerUID,dayz_characterID,"Survivor2_DZ"] spawn player_humanityMorph;
};
case "Skin_Soldier1_DZ": {
[dayz_playerUID,dayz_characterID,"Soldier1_DZ"] spawn player_humanityMorph;
};
};
====================================================================
To remove the restriction to character models or add your own
server files > dayz_server.pbo > compile > server_playerLogin.sqf
Find:
if (!_isNew) then {
//RETURNING CHARACTER
_inventory = _primary select 4;
_backpack = _primary select 5;
_survival = _primary select 6;
_model = _primary select 7;
_hiveVer = _primary select 8;
if (!(_model in ["SurvivorW2_DZ","Survivor2_DZ","Sniper1_DZ","Soldier1_DZ","Camo1_DZ","Bandit1_DZ","SurvivorW2_DZ"])) then {
_model = "Survivor2_DZ";
};
} else {
_model = _primary select 3;
_hiveVer = _primary select 4;
if (isNil "_model") then {
_model = "Survivor2_DZ";
} else {
if (_model == "") then {
_model = "Survivor2_DZ";
};
};
To remove this completely and open any models:
if (!_isNew) then {
//RETURNING CHARACTER
_inventory = _primary select 4;
_backpack = _primary select 5;
_survival = _primary select 6;
_model = _primary select 7;
_hiveVer = _primary select 8;
} else {
_model = _primary select 3;
_hiveVer = _primary select 4;
if (isNil "_model") then {
_model = "Survivor2_DZ";
} else {
if (_model == "") then {
_model = "Survivor2_DZ";
};
};
To add specific models if you are a public hive to keep the scriptfags at bay.. to some degree, add the class name to this line like i do with "FR_TL". For multiples, do like so "FR_TL","FR_AC","FR_GL":
if (!(_model in ["SurvivorW2_DZ","Survivor2_DZ","Sniper1_DZ","Soldier1_DZ","Camo1_DZ","Bandit1_DZ","SurvivorW2_DZ","FR_TL","FR_AC","FR_GL"])) then {
_model = "Survivor2_DZ";