Jump to content

socs

Member
  • Content count

    183
  • Joined

  • Last visited

  • Medals

Community Reputation

67 Excellent

1 Follower

About socs

  • Rank
    Sergeant
  1. First and foremost welcome to the Arma community! As Gunter stated you did join a public lobby, this means that generally anyone who owns this game that is in within acceptable connection standards can join. You can always ask questions here and always find help at the same time, your reply times to certain questions can range from 1 minute to ~1 day or so depending on what your question entales. Asking questions in a public server in Arma or practically any public lobby in any game is bound to get you unfortunate results and toxicity because unfortunately that's how some people are. I ask multiple questions probably every day in this community on these forums and everyone here has been exceptionally helpful and don't act like children. If you still do have any questions I believe there's a newcomer thread around here somewhere that's pinned. Any other questions that are relatively complicated, try a quick google search and see if there's a forum post surrounding that particular topic because chances are, there's someone that's already asked the exact or similar question you have. Anyhow enjoy the forums, and try to veer away from the public lobbies until you can comfortably accept the way some grown people are and how they act. Wish you luck and hope to see you around on the forums :-) Enjoy!
  2. Kill Reward

    Ill give this a try and edit this post to let you know EDIT: No this did not work, I received no hit when killing any AI
  3. Kill Reward

    Heres the add/subtract kills function, not sure if you wanted this or the money so ill post the kills first: params[["_mode",0,[0]],["_amount",1,[0]],"_oldVal","_newVal"]; _oldVal = player getVariable "HG_Kills"; _newVal = if(_mode isEqualTo 0) then {(_oldVal + _amount)} else {(_oldVal - _amount)}; if(_newVal < 0) then {_newVal = 0}; HG_CLIENT = [1,(getPlayerUID player),_newVal]; if(isServer) then { [HG_CLIENT] call HG_fnc_clientToServer; } else { publicVariableServer "HG_CLIENT"; }; HG_CLIENT = nil; player setVariable ["HG_Kills",_newVal,true]; [4] call HG_fnc_HUD; true; heres the money: params[["_amount",1,[0]],["_mode",0,[0]],["_where",0,[0]],"_oldVal","_newVal"]; if(!([_amount] call HG_fnc_isNumeric)) exitWith {hint (localize "STR_HG_NOT_A_NUMBER");}; if(_amount isEqualTo 0) exitWith {true;}; _oldVal = if(_where isEqualTo 0) then {(player getVariable HG_CASH_VAR)} else {(player getVariable HG_BANK_VAR)}; _newVal = if(_mode isEqualTo 0) then {(_oldVal + _amount)} else {(_oldVal - _amount)}; if(_newVal < 0) then {_newVal = 0}; HG_CLIENT = [[0,(getPlayerUID player),_newVal],[3,(getPlayerUID player),_newVal]] select _where; if(isServer) then { [HG_CLIENT] call HG_fnc_clientToServer; } else { publicVariableServer "HG_CLIENT"; }; HG_CLIENT = nil; if(_where isEqualTo 0) then { player setVariable [HG_CASH_VAR,_newVal,true]; if(HG_HUD_ENABLED) then { [1] call HG_fnc_HUD; }; } else { player setVariable [HG_BANK_VAR,_newVal,true]; }; if(HG_ATM_ENABLED) then { [] call HG_fnc_atmRefresh; }; true;
  4. Kill Reward

    Here the config file. /* MONEY */ currencyType = "USD"; cashVariable = "HG_Cash"; bankVariable = "HG_Bank"; /* SYSTEMS */ resetSavedMoney = false; enableHUD = true; enablePaycheck = true; enableKillReward = true; enableTeamKillPenalty = true; enableCrate = true; enableGiveMoney = true; enableBuyToGarage = true; clearInventory = true; storeVehiclesOnDisconnect = true; deleteBodyOnDisconnect = false; resetGaragesOnServerStart = false; enablePlayerInventorySave = true; enableVehicleInventorySave = true; enableXP = true; enableKillCount = true; enableTags = true; enableMarkers = true; enableATM = true; enableWhitelist = false; /* WHITELIST */ whitelistSides[] = {"west"}; /* ADMINS */ admins[] = {"_SP_PLAYER_"}; /* KEYS */ atmKey = 0x14; lockUnlockKey = 0x15; giveMoneyKey = 0x23; giveKeyKey = 0x21; adminKey = 0x52; /* SAVING */ savingMethod = "Profile"; extDBDatabase = "HG"; extDBProtocol = "SQL_CUSTOM"; extDBCustomFile = "custom.ini"; /* MASTER CFG */ class HG_MasterCfg { class PRIVATE { paycheck = 8500; paycheckPeriod = 30; startCash = 10000; startBank = 20000; killedReward = 250; tkPenaltyPlayer = 500; tkPenaltyAI = 250; xpPenaltyPlayer = 10; xpPenaltyAI = 5; xpReward = 25; xpToLvlUp = 1000; iShopDiscount = 0; gShopDiscount = 0; vShopDiscount = 0; }; class CORPORAL { paycheck = 10000; paycheckPeriod = 30; startCash = 10000; startBank = 20000; killedReward = 500; tkPenaltyPlayer = 1000; tkPenaltyAI = 500; xpPenaltyPlayer = 20; xpPenaltyAI = 10; xpReward = 20; xpToLvlUp = 1500; iShopDiscount = 2; gShopDiscount = 2; vShopDiscount = 2; }; class SERGEANT { paycheck = 12500; paycheckPeriod = 30; startCash = 10000; startBank = 20000; killedReward = 750; tkPenaltyPlayer = 1500; tkPenaltyAI = 750; xpPenaltyPlayer = 30; xpPenaltyAI = 15; xpReward = 30; xpToLvlUp = 2000; iShopDiscount = 4; gShopDiscount = 4; vShopDiscount = 4; }; class LIEUTENANT { paycheck = 8000; paycheckPeriod = 30; startCash = 10000; startBank = 20000; killedReward = 1000; tkPenaltyPlayer = 2000; tkPenaltyAI = 1000; xpPenaltyPlayer = 40; xpPenaltyAI = 20; xpReward = 40; xpToLvlUp = 2500; iShopDiscount = 6; gShopDiscount = 6; vShopDiscount = 6; }; class CAPTAIN { paycheck = 10000; paycheckPeriod = 30; startCash = 10000; startBank = 20000; killedReward = 1500; tkPenaltyPlayer = 2500; tkPenaltyAI = 1250; xpPenaltyPlayer = 50; xpPenaltyAI = 25; xpReward = 50; xpToLvlUp = 3000; iShopDiscount = 8; gShopDiscount = 8; vShopDiscount = 8; }; class MAJOR { paycheck = 12000; paycheckPeriod = 30; startCash = 10000; startBank = 20000; killedReward = 3000; tkPenaltyPlayer = 3000; tkPenaltyAI = 1500; xpPenaltyPlayer = 60; xpPenaltyAI = 30; xpReward = 60; xpToLvlUp = 3500; iShopDiscount = 10; gShopDiscount = 10; vShopDiscount = 10; }; class COLONEL { paycheck = 14000; paycheckPeriod = 15; startCash = 10000; startBank = 20000; killedReward = 3500; tkPenaltyPlayer = 3500; tkPenaltyAI = 1750; xpPenaltyPlayer = 70; xpPenaltyAI = 35; xpReward = 70; xpToLvlUp = 0; iShopDiscount = 12; gShopDiscount = 12; vShopDiscount = 12; }; }; ////////// DO NOT MODIFY ////////// class HG_DealersCfg { #include "HG_DealersCfg.h" }; class HG_GaragesCfg { #include "HG_GaragesCfg.h" }; class HG_GearShopCfg { #include "HG_GearShopCfg.h" }; class HG_ItemsShopCfg { #include "HG_ItemsShopCfg.h" }; class HG_TradersCfg { #include "HG_TradersCfg.h" }; class HG_VehiclesShopCfg { #include "HG_VehiclesShopCfg.h" }; ////////// As for your second and third questions im not quite sure what you mean.
  5. Kill Reward

    I actually didn't resolve this, I tried and tested it but apparently I was wrong. Didn't bother editing my post because I figured I would have gotten a strike for bumping... If someone still wants to help that'd be great, otherwise I'm still trying things myself.
  6. Kill Reward

    I've resolved this. This can be closed. EDIT: Not resolved, solution didn't work.
  7. Hey all, so I've gotten my hands on a money system/shop that I've heavily modified now. I am having a problem though, so before I state my issue, yes I've contacted the author, his thread is fairly old so I'm not sure he even comes to forums any longer, and yes I've attempted to fix this myself to no succession. So my issue is the kill reward doesn't seem to work at all. I have it enabled in script, I'm using this with the ravage modules but I don't get any reward when killing zombies/enemy AI. If someone wouldn't mind just helping me figure out how to activate this and get it working it'd be much appreciated. Here all the scripting below: if(!isServer) exitWith {true}; params["_ai"]; // _ai represents the passed AI unit to the function if((typeName _ai) != "OBJECT") exitWith {diag_log format[(localize "STR_HG_ERR_NOT_OBJECT"),"HG\Functions\Client\AI\fn_aiUnitSetup.sqf"];}; if(!(_ai isKindOf "Man")) exitWith {diag_log format[(localize "STR_HG_ERR_NOT_MAN"),"HG\Functions\Client\AI\fn_aiUnitSetup.sqf"];}; if(isPlayer _ai) exitWith {diag_log format[(localize "STR_HG_ERR_PLAYER"),"HG\Functions\Client\AI\fn_aiUnitSetup.sqf"];}; if((getNumber(getMissionConfig "CfgClient" >> "enableKillReward")) isEqualTo 1) then { _ai addEventHandler [ "Killed", { params ["_unit","_killer","_instigator"]; if((!isPlayer _instigator) OR {_instigator isEqualTo _unit}) exitWith {}; if((side (group _unit)) isEqualTo (side (group _instigator))) then { if((getNumber(getMissionConfig "CfgClient" >> "enableTeamKillPenalty")) isEqualTo 1) then { [(getNumber(getMissionConfig "CfgClient" >> "HG_MasterCfg" >> (rank _unit) >> "tkPenaltyAI")),1] remoteExecCall ["HG_fnc_addOrSubCash",_instigator,false]; if((getNumber(getMissionConfig "CfgClient" >> "enableXP")) isEqualTo 1) then { [(getNumber(getMissionConfig "CfgClient" >> "HG_MasterCfg" >> (rank _unit) >> "xpPenaltyAI")),1] remoteExecCall ["HG_fnc_addOrSubXP",_instigator,false]; }; }; } else { [(getNumber(getMissionConfig "CfgClient" >> "HG_MasterCfg" >> (rank _unit) >> "killedReward")),0] remoteExecCall ["HG_fnc_addOrSubCash",_instigator,false]; if((getNumber(getMissionConfig "CfgClient" >> "enableXP")) isEqualTo 1) then { [(getNumber(getMissionConfig "CfgClient" >> "HG_MasterCfg" >> (rank _unit) >> "xpReward")),0] remoteExecCall ["HG_fnc_addOrSubXP",_instigator,false]; }; if(((getNumber(getMissionConfig "CfgClient" >> "enableKillCount")) isEqualTo 1) AND ((getNumber(getMissionConfig "CfgClient" >> "enableHUD")) isEqualTo 1)) then { [0] remoteExecCall ["HG_fnc_addOrSubKills",_instigator,false]; }; }; } ]; }; _ai addEventHandler [ "HandleRating", { params["_unit","_rating"]; if(_rating <= 0) then { _rating = 0; }; _rating; } ]; true; Thank you.
  8. GF Missions Script

    So, just to clarify, you call the reward selection after every time this is used? ["1_1_Eliminate_Spy", "SUCCEEDED",true] spawn BIS_fnc_taskSetState;
  9. Hey, sorry for reviving such an old topic but, I got everything working correctly, however, I cant seem to get into the vehicles I purchase lol. They all seem to be locked. Any fix for this? EDIT: Figured the first part out lol! Now, how do you enable the kill rewards? I'm using this in ravage, but unfortunately I'm not being rewarded money or XP when i kill zombies or enemies. Any an all help is much appreciated, thank you.
  10. Ahhh it's been so long. My computer corrupted on me a couple months ago, so I lost all my scripting and such. Sorry for the repeated topic then, it can be deleted. Thank you
  11. GF Missions Script

    Out of curiosity, how would you go about tying these rewards to the missions themselves? Surely there would be more to it than just placing these in your mission folder. Looks and sounds good though :) Wish you luck.
  12. GF Ravage Static Traders Script

    Alright, neat thank you! One more thing, how would I go about adding more items to the shop?
  13. Hello everyone, I'm currently looking for a way to set up random flight paths for a survival mission. The objective of the game is to start in an airplane piloted by AI and essentially, you jump when you want, kind of like a battle royale themed map. I would just rather have the plane take a random path instead of constantly taking the same path over again. Any an all help is much appreciated, thanks!
  14. GF Ravage Static Traders Script

    Hey George! I have returned, I'm wondering, for this script, if there is a way that I could make it to where once you step into a certain radius of the trader you become invincible. Thus allowing you to trade peacefully without having to worry about zombies/AI killing you out of nowhere. This would be super helpful :) Thank you! Also, would it be possible you could create a vehicle trader as well? To buy land, air, and sea vehicles? That'd be very cool as well!
  15. Arma 3 single player delay

    I'm running 50 mods, and have been for over a year, however this hasn't started happening until 2 weeks ago. And could you define RPT please?
×