I'm not sure where the right place to ask this question is, and I'm sure its rather obvious to everyone who does code, which means all of you guys.
I've done research on this PZombie_VB, which is found in tons of scripts, but I can't find a definition of it.
In the default fn_selfActions.sqf are found the following lines :
Line 12:
Line 77:
So PZombie_VB means a player spawned as a Zombie?
So code that says :
Is basically saying if the player is not surrendered or a zombie, then execute the code here?
I've done research on this PZombie_VB, which is found in tons of scripts, but I can't find a definition of it.
In the default fn_selfActions.sqf are found the following lines :
Line 12:
Code:
_isPZombie = player isKindOf "PZombie_VB";
Line 77:
Code:
if(_isPZombie) then {
if (s_player_callzombies < 0) then {
s_player_callzombies = player addAction [localize "STR_EPOCH_ACTIONS_RAISEHORDE", "\z\addons\dayz_code\actions\call_zombies.sqf",player, 5, true, false, "",""];
};
if (DZE_PZATTACK) then {
call pz_attack;
DZE_PZATTACK = false;
};
if (s_player_pzombiesvision < 0) then {
s_player_pzombiesvision = player addAction [localize "STR_EPOCH_ACTIONS_NIGHTVIS", "\z\addons\dayz_code\actions\pzombie\pz_vision.sqf", [], 4, false, true, "nightVision", "_this == _target"];
};
if (!isNull cursorTarget && (player distance cursorTarget < 3)) then { //Has some kind of target
_isAnimal = cursorTarget isKindOf "Animal";
_isZombie = cursorTarget isKindOf "zZombie_base";
_isHarvested = cursorTarget getVariable["meatHarvested",false];
_isMan = cursorTarget isKindOf "Man";
// Pzombie Gut human corpse || animal
if (!alive cursorTarget && (_isAnimal || _isMan) && !_isZombie && !_isHarvested) then {
if (s_player_pzombiesfeed < 0) then {
s_player_pzombiesfeed = player addAction [localize "STR_EPOCH_ACTIONS_FEED", "\z\addons\dayz_code\actions\pzombie\pz_feed.sqf",cursorTarget, 3, true, false, "",""];
};
} else {
player removeAction s_player_pzombiesfeed;
s_player_pzombiesfeed = -1;
};
} else {
player removeAction s_player_pzombiesfeed;
s_player_pzombiesfeed = -1;
};
};
So PZombie_VB means a player spawned as a Zombie?
So code that says :
Code:
if(_canDo &&!DZE_Surrender && !(player iskindof "PZombie_VB")) then {}
Is basically saying if the player is not surrendered or a zombie, then execute the code here?