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분
< >
전체 댓글 4개 중 1~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.
< >
전체 댓글 4개 중 1~4개 표시 중
페이지당 표시 개수: 1530 50