Arma 3
Zombies and Demons
Reign 20. maj 2017 kl. 4:50
Lowering Infection Chance based on Assigned Items
I was wondering if it's possible to make a unit specific code to be used in multiplayer to lower the infection chance based on equipped items.

For example I have the infection chance set to 50, and wish to lower it by certain values depending on the CBRN (NBC) equipment the player (or npc) has equipped.

if ("skn_m50_gas_mask_hood" in assignedItems player) then
{
this select 0 [ryanzombiesinfectedchance = ryanzombiesinfectedchance - 20]
}
else exitWith {};

I would love some input and help, and would absolutely love some refinement if this is possible!

Thanks!
Sidst redigeret af Reign; 20. maj 2017 kl. 4:51
< >
Viser 1-4 af 4 kommentarer
Tsar 20. maj 2017 kl. 21:00 
I just written a script for this lastnight and It works. It sets the value based on what gear they're wearing (more covered = less chance) but according to Ryan the chance of infection is the same for all players.
Reign 21. maj 2017 kl. 0:49 
I would really love to take a look at what you've got, if you don't mind.

That's what I was afraid of, it being a global value. Well darn. Hm. There has got to be a way.

Thanks for the response bruddah!
Sidst redigeret af Reign; 21. maj 2017 kl. 0:50
Tsar 21. maj 2017 kl. 7:31 
I've asked Ryan if it's possible to change it to be client side or something but we'll see.

This code should work but I haven't tested it since making some changes. I've also commented the code to explain the basics of what's happening.

https://pastebin.com/MxW1cxU7
Reign 21. maj 2017 kl. 9:08 
I really appreciate the effort put into it, it looks brilliant. I'll give it a shot Tuesday with a call function to display the numbers via a hint. Thank you for sharing. This could easily be translated to help with the nerve gas and chem weapon scripts that are dying out.

It would be interesting to see the function go client side or be unit specific, for sure. It would add a level of detail and reward to gameplay if this works.
< >
Viser 1-4 af 4 kommentarer
Per side: 1530 50