Skip to content

Commit

Permalink
Medical: Dynamic bulk for trauma kit
Browse files Browse the repository at this point in the history
Kit base is 15 bulk. A standard kit fully loaded is approx 31 bulk. Supply bulks are based on partial percentages of the items that supply them.
  • Loading branch information
caligari87 committed Sep 18, 2020
1 parent 45d0fe9 commit f63cc8a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion modules/items/traumakit/traumakit.zsc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,16 @@ class UaS_TraumaKit : HDWeapon {
scale 0.5;
tag "Trauma Kit";
}
override double weaponbulk(){ return 20; }

override double weaponbulk(){
double b = 0;
b += (weaponstatus[TKS_PAINKILLER] / 20) * (ENC_STIMPACK * 0.4);
b += (weaponstatus[TKS_SALINE] / 1000) * (ENC_STIMPACK * 2 * 0.8);
b += (weaponstatus[TKS_BIOFOAM] / 250) * (6 * 0.6);
b += (weaponstatus[TKS_STAPLES] / 25) * (6 * 0.1);
b = max(b, 15);
return b;
}

states {
spawn:
Expand Down

0 comments on commit f63cc8a

Please sign in to comment.