Arma 3
Zombies and Demons
Reign 2017 年 5 月 20 日 上午 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!
最後修改者:Reign; 2017 年 5 月 20 日 上午 4:51
< >
目前顯示第 1-4 則留言,共 4
Tsar 2017 年 5 月 20 日 下午 9: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 2017 年 5 月 21 日 上午 12: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!
最後修改者:Reign; 2017 年 5 月 21 日 上午 12:50
Tsar 2017 年 5 月 21 日 上午 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 2017 年 5 月 21 日 上午 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.
< >
目前顯示第 1-4 則留言,共 4
每頁顯示: 1530 50