Jump to content

ddmankiller

Member
  • Posts

    41
  • Joined

  • Last visited

Posts posted by ddmankiller

  1. I have been experiencing a damage issue on my servers lately. I do not know if a certain script/file would be causing this. A common issue is headshots. People are getting shot in the head but not actually taking any damage. If anyone can share any insight on this, it would be much appreciated.

  2. Nope, this is what it looks like

     
    ;Negative values will disable this feature
    ;0 means that ALL empty placed items will be deleted every server restart
    ;A positive number is how old (in days) a placed empty item must be, in order for it to be deleted
    CleanupPlacedAfterDays = -1
  3. Those errors occur if you didn't install my version of the fnc_plyrhit.sqf

    You need to check your files again and make sure to use the updated version.

    I replaced my whole fnc_playerhit with the code you provided in the beggining and the issue still pertains.

    private ["_victim", "_attacker","_weapon","_weapon_dmg","_distance","_damage","_weapon_img"];
    _victim = _this select 0;
    _attacker = _this select 1;
    _damage = _this select 2;
    
    if (!isPlayer _victim || !isPlayer _attacker) exitWith {};
    if ((owner _victim) == (owner _attacker)) exitWith {
    	_victim setVariable["AttackedBy", _victim, true];
    };
    
    _weapon = (weaponState _attacker);
    
    _vehicle = typeOf (vehicle _attacker); 
    
    if ((getText (configFile >> "CfgVehicles" >> _vehicle >> "vehicleClass")) in ["CarW","Car","CarD","Armored","Ship","Support","Air","ArmouredW","ArmouredD","SupportWoodland_ACR"]) then {
    	_weapon_dmg = getText (configFile >> 'CfgVehicles' >> _vehicle >> 'displayName');
    	_weapon_img = gettext(configFile >> 'CfgVehicles' >> _vehicle >> 'picture');
    } else {
    	_weapon_dmg = gettext (configFile >> 'cfgWeapons' >> (currentWeapon _attacker) >> 'displayName');
    	_weapon_img = gettext(configFile >> 'cfgWeapons' >> (currentWeapon _attacker) >> 'picture');
    };
    
    _distance = _victim distance _attacker;
    
    diag_log format["PLAYERHIT: %1 was hit by %2 with %3 from %4m with %5 dmg", _victim, _attacker, _weapon_dmg, _distance, _damage];
    
    _victim setVariable["AttackedBy", _attacker, true];
    _victim setVariable["AttackedByName", (name _attacker), true];
    _victim setVariable["AttackedByWeapon", _weapon_dmg, true];
    _victim setVariable["AttackedFromDistance", _distance, true];
    _victim setVariable["AttackedByWeaponImg", _weapon_img, true]; 
    
  4. I saw this script over 6 months ago. Two players would trade with each other, a box would pop up for each player, they would place their items in their own box that the other player can see. Then when they are ready they both click a button which agrees the trade and the items are swapped. Does anyone have this script, know where it is, or can construct it?

×
×
  • Create New...