Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class HS_DynamicSetting_MaxMonsters extends HS_DynamicSetting
- within KFGameInfo_HardSurvival;
- protected function string ReadIndicator()
- {
- return Outer.MaxMonsters;
- }
- protected function WriteIndicator( const out string Ind )
- {
- Outer.MaxMonsters = Ind;
- }
- function bool StageIndicator( const out string Raw, out string StatusMsg, const optional bool ForceOverwrite = false )
- {
- super.StageIndicator(Raw, StatusMsg);
- if (DiffEnum == 0)
- {
- StagedValue = "12,16,20,24,28,32";
- }
- if (DiffEnum == 1)
- {
- StagedValue = "18,22,26,30,34,36,38,40,42,44";
- }
- if (DiffEnum == 2)
- {
- StagedValue = "24,28,32,36,40,44,48,52,56,60";
- }
- }
- protected function float ReadValue()
- {
- return float(Outer.MaxMonstersInt);
- }
- protected function WriteValue( const out float Val )
- {
- Outer.MaxMonstersInt = Round(Val);
- }
- protected function string PrettyValue( const float RawValue )
- {
- return string(Round(RawValue));
- }
- defaultproperties
- {
- IniDefsArrayName="MaxMonstersDefs"
- OptionName="MaxMonsters"
- MinSettingValue=0
- MaxSettingValue=10000
- ChatCommandNames=("!mm")
- ChatWriteParamHintFragment="int, 0 to use unmodded default"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement