+ Fixed plugin startup caching sounds way too early, resulting in sounds never playing in game
This commit is contained in:
2025-08-19 02:23:14 -04:00
parent 9fbe3b54ad
commit 6778d13c85
3 changed files with 8 additions and 7 deletions

View File

@@ -32,7 +32,12 @@ public Plugin myinfo = {
};
public void OnPluginStart() {
AssLogger(LOGLVL_INFO, "####### STARTUP SEQUENCE INITIATED... PREPARE FOR THE END TIMES #######");
AssLogger(LOGLVL_INFO, "Starting up Fartsy's Framework! Waiting for Map Start...");
}
//Begin executing IO when ready
public void OnFastFire2Ready(){
AssLogger(LOGLVL_INFO, "####### FASTFIRE2 IS READY! INITIATE STARTUP SEQUENCE... PREPARE FOR THE END TIMES #######");
RegisterAndPrecacheAllFiles();
RegisterAllCommands();
UpdateGamemode();
@@ -43,10 +48,6 @@ public void OnPluginStart() {
cvarSNDDefault = CreateConVar("sm_fartsysass_sound", "3", "Default sound for new users, 3 = Everything, 2 = Sounds Only, 1 = Music Only, 0 = Nothing");
AssLogger(LOGLVL_INFO, "####### STARTUP COMPLETE (v%s) #######", PLUGIN_VERSION);
CreateTimer(15.0, StatsTracker);
}
//Begin executing IO when ready
public void OnFastFire2Ready(){
AudioManager.Reset();
WeatherManager.Reset();
CreateTimer(1.0, SelectAdminTimer);

View File

@@ -1,4 +1,4 @@
public char PLUGIN_VERSION[8] = "8.3.0a";
public char PLUGIN_VERSION[8] = "8.3.0b";
void sudo(int task) {
AssLogger(LOGLVL_DEBUG, "Calling sudo with %i", task);
switch (task) {

View File

@@ -8,7 +8,7 @@ public void OnMapStart() {
void InjectFastFire2(){
int ff2 = FindEntityByTargetname("FastFire2", "info_target");
AssLogger(LOGLVL_INFO, "Injecting FastFire2!");
AssLogger(LOGLVL_INFO, "OnMapStart Received: Injecting FastFire2!");
if (!IsValidEntity(ff2)){
ff2 = CreateEntityByName("info_target");
if (!IsValidEdict(ff2)) SetFailState("Could not inject FastFire2, aborting!!!");