1
OXCE Suggestions NEW / [SUGGESTION]: Add support of fuseTimerMin & Max to randomizedItems:
« on: December 02, 2024, 07:34:04 pm »
That will allow modders to randomly place booby traps under some passages.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
armors:
- type: SECTOID_ARMOR0
tags:
IS_SCP173: 1
extended:
tags:
RuleArmor:
IS_SCP173: int
scripts:
visibilityUnit:
- offset: 4
code: |
var ptr RuleArmor armorRuleset;
var int scp173;
var int observerFaction;
var int targetTU;
var int targetTUmax;
var int observerMorale;
var int observerBravery;
var int cowardness 110;
target_unit.getRuleArmor armorRuleset;
armorRuleset.getTag scp173 Tag.IS_SCP173;
if eq scp173 1;
target_unit.Stats.getTimeUnits targetTUmax;
target_unit.setTimeUnits targetTUmax;
observer_unit.getFaction observerFaction;
debug_log "SCP is" target_unit "Observer is" observer_unit;
if neq observerFaction 1;
target_unit.setTimeUnits 0;
observer_unit.Stats.getBravery observerBravery;
observer_unit.getMorale observerMorale;
sub cowardness observerBravery;
sub observerMorale cowardness;
observer_unit.setMorale observerMorale;
end;
end;
return current_visibility visibility_mode;