Skip to content

Commit

Permalink
'warpsave' and other improvements
Browse files Browse the repository at this point in the history
Closes #2
Closes #3
  • Loading branch information
smilz0 committed Oct 7, 2023
1 parent 6595eb3 commit 1b30c8e
Show file tree
Hide file tree
Showing 6 changed files with 801 additions and 709 deletions.
Binary file modified out/Left4Fun.vpk
Binary file not shown.
7 changes: 5 additions & 2 deletions root/scripts/vscripts/left4fun.nut
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,12 @@ const LOG_LEVEL_DEBUG = 4;
rescueVehicle = null
}
SpawningExtraSurvivors = {}
//JoiningUserids = []
ModelsToPrecache = ["models/infected/witch.mdl", "models/infected/witch_bride.mdl", L4FPICKUP_GIFT_MODEL, L4FPICKUP_MONEY_MODEL]
SoundsToPrecache = ["UI/gift_drop.wav", "UI/littlereward.wav", "EDIT_MARK.Enable", "EDIT_MARK.Disable"]
ReloadFixWeps = [ "weapon_smg", "weapon_smg_silenced", "weapon_smg_mp5", "weapon_rifle", "weapon_rifle_desert", "weapon_rifle_ak47", "weapon_rifle_sg552", "weapon_hunting_rifle", "weapon_sniper_military", "weapon_rifle_m60", "weapon_sniper_awp", "weapon_sniper_scout" ]
ReloadFixClips = {}
ScriptedVocalizers = []
WarpPos = {}
}

IncludeScript("left4fun_settings");
Expand Down Expand Up @@ -335,6 +335,10 @@ IncludeScript("left4fun_settings");
c = Left4Fun.LoadCvars("left4fun/cfg/" + Left4Fun.BaseName + "_persistentcvars.txt", true);
Left4Fun.Log(LOG_LEVEL_INFO, "Loaded " + c + " persistent cvars");

Left4Fun.Log(LOG_LEVEL_INFO, "Loading saved warp pos...");
c = Left4Fun.LoadWarpPosFromFile("left4fun/warp/" + Left4Fun.MapName + ".txt");
Left4Fun.Log(LOG_LEVEL_INFO, "Loaded " + c + " warp pos");

Left4Fun.Log(LOG_LEVEL_INFO, "Loading store...");
c = Left4Fun.LoadStore();
Left4Fun.Log(LOG_LEVEL_INFO, "Loaded " + c + " store items");
Expand Down Expand Up @@ -518,6 +522,5 @@ IncludeScript("left4fun_cvars");
IncludeScript("left4fun_events");
IncludeScript("left4fun_functions");
IncludeScript("left4fun_commands");
IncludeScript("left4fun_admin");

Left4Fun.Initialize();
Loading

0 comments on commit 1b30c8e

Please sign in to comment.