sl.Home | sl.Search | sl.Forum | sl.Settings | sl.Serverlist | sl.Maplist | sl.Team | sl.Wiki |
Probs with Omni-bot |
Jan 28 2017, 07:23 PM
Post
#1
|
|
Private 1st Class Group: Members Joined: 22-January 09 From: Holland Member No.: 80908 |
If a sniper map all bots start as covert ops.After they die, the go other class. What do I need to adjust to prevent change classes.
I use Silent Mod with mapvoting. tx mc |
|
|
Jan 28 2017, 08:24 PM
Post
#2
|
|
Major General Group: Members Joined: 21-November 05 From: etclan.de:27960 Member No.: 18126 |
make a backup of your file and try to use this one.
File: omnibot/et/scripts/et_autoexec.gm i added || GetModName()=="silent" && GetCvar("g_sniperwar")==1 ) and || GetModName()=="silent" && GetCvar("g_panzerwar")==1 ) i hope this works for you. QUELLTEXT // New module format
global Util = import("utilities"); global ETUtil = import("et_utilities"); // Load any other scripts that we will need. ExecScript("et_navconfig.gm"); ExecScript("commands.gm"); ExecScript("et_commands.gm"); ExecScript("server_manager.gm"); ExecScript("et_weapontables.gm"); //ExecScript("autowaypoint.gm"); global RegionTrigger = import("et_regiontriggers"); global ClassManager = import("et_classmanager"); ExecScript("et_botnames_ext.gm"); // note: must be loaded after et_classmanager // global debug flags global DEBUG_MAP_SCRIPTS = false; global DEBUG_GOAL_AVAILABILITY = false; global DEBUG_SCRIPT_GOALS = false; global DEBUG_SCRIPT_GOALS_FILTER = {}; DEBUG_SCRIPT_GOALS_FILTER["pathfailed"] = 1; DEBUG_SCRIPT_GOALS_FILTER["timedout"] = 1; DEBUG_SCRIPT_GOALS_FILTER["disabled"] = 1; DEBUG_SCRIPT_GOALS_FILTER["regiontrigger"] = 1; DEBUG_SCRIPT_GOALS_FILTER["initialized"] = 1; // global flag to turn off bot chat in supported maps global MAP_TALK = true; // enable / disable the class manager global DisableClassManager = 0; // set up the class counts Util.InitializeClassTables(); countAxis = Server.MinClassCount[TEAM.AXIS]; countAllies = Server.MinClassCount[TEAM.ALLIES]; if ( Server.MaxBots < 10 && Server.MaxBots > 0 ) { countAxis[CLASS.SOLDIER] = 0; countAxis[CLASS.MEDIC] = 2; countAxis[CLASS.ENGINEER] = 2; countAxis[CLASS.COVERTOPS] = 1; countAxis[CLASS.FIELDOPS] = 0; countAllies[CLASS.SOLDIER] = 0; countAllies[CLASS.MEDIC] = 2; countAllies[CLASS.ENGINEER] = 2; countAllies[CLASS.COVERTOPS] = 1; countAllies[CLASS.FIELDOPS] = 0; } else { countAxis[CLASS.SOLDIER] = 0; countAxis[CLASS.MEDIC] = 2; countAxis[CLASS.ENGINEER] = 2; countAxis[CLASS.COVERTOPS] = 1; countAxis[CLASS.FIELDOPS] = 0; countAllies[CLASS.SOLDIER] = 0; countAllies[CLASS.MEDIC] = 2; countAllies[CLASS.ENGINEER] = 2; countAllies[CLASS.COVERTOPS] = 1; countAllies[CLASS.FIELDOPS] = 0; if (CLASS.SCIENTIST) { countAxis[CLASS.SCIENTIST] = 1; countAllies[CLASS.SCIENTIST] = 1; } if (CLASS.SUPER_SOLDIER) { countAxis[CLASS.SUPER_SOLDIER] = 1; countAllies[CLASS.SUPER_SOLDIER] = 1; } } global PostMapLoad = function() { ETUtil.MapStartTime = GetTime() - 1.75; // seems to be a bit of a delay Util.ProcessMovers(); if ( Map.SnipeMap || GetModName()=="Jaymod" && GetCvar("g_sniperwar")==1 || GetModName()=="nitmod" && GetCvar("g_war")==2 ) || GetModName()=="silent" && GetCvar("g_sniperwar")==1 ) { Util.SnipeMap(); } else if ( Map.PanzerMap || GetModName()=="Jaymod" && GetCvar("g_panzerwar")==1 || GetModName()=="nitmod" && GetCvar("g_war")==1 ) || GetModName()=="silent" && GetCvar("g_panzerwar")==1 ) { ETUtil.PanzerMap(); } if ( GetGameType() == 5 ) // last man standing { foreach(goal in Util.GoalTable()) { if(goal.GoalType!="AMMOCAB" && goal.GoalType!="HEALTHCAB") { goal.DisableGoal(true); } else { goal.SetAvailable(0,true); } } Util.MapDebugPrint( "Running " + GetMapName() + " in LMS mode." ); } if ( GetModName() == "infected" ) { foreach(goal in Util.GoalTable()) { goal.DisableGoal(true); } Map.DontDispenseAmmo = true; } }; print("ET autoexec script executed."); This post has been edited by ETc|Jay: Jan 28 2017, 08:35 PM -------------------- |
|
|
Jan 29 2017, 08:15 AM
Post
#3
|
|
Private 1st Class Group: Members Joined: 22-January 09 From: Holland Member No.: 80908 |
No sorry, than Omni-bot doesn't work at all
make a backup of your file and try to use this one.
File: omnibot/et/scripts/et_autoexec.gm i added || GetModName()=="silent" && GetCvar("g_sniperwar")==1 ) and || GetModName()=="silent" && GetCvar("g_panzerwar")==1 ) i hope this works for you. CODE // New module format global Util = import("utilities"); global ETUtil = import("et_utilities"); // Load any other scripts that we will need. ExecScript("et_navconfig.gm"); ExecScript("commands.gm"); ExecScript("et_commands.gm"); ExecScript("server_manager.gm"); ExecScript("et_weapontables.gm"); //ExecScript("autowaypoint.gm"); global RegionTrigger = import("et_regiontriggers"); global ClassManager = import("et_classmanager"); ExecScript("et_botnames_ext.gm"); // note: must be loaded after et_classmanager // global debug flags global DEBUG_MAP_SCRIPTS = false; global DEBUG_GOAL_AVAILABILITY = false; global DEBUG_SCRIPT_GOALS = false; global DEBUG_SCRIPT_GOALS_FILTER = {}; DEBUG_SCRIPT_GOALS_FILTER["pathfailed"] = 1; DEBUG_SCRIPT_GOALS_FILTER["timedout"] = 1; DEBUG_SCRIPT_GOALS_FILTER["disabled"] = 1; DEBUG_SCRIPT_GOALS_FILTER["regiontrigger"] = 1; DEBUG_SCRIPT_GOALS_FILTER["initialized"] = 1; // global flag to turn off bot chat in supported maps global MAP_TALK = true; // enable / disable the class manager global DisableClassManager = 0; // set up the class counts Util.InitializeClassTables(); countAxis = Server.MinClassCount[TEAM.AXIS]; countAllies = Server.MinClassCount[TEAM.ALLIES]; if ( Server.MaxBots < 10 && Server.MaxBots > 0 ) { countAxis[CLASS.SOLDIER] = 0; countAxis[CLASS.MEDIC] = 2; countAxis[CLASS.ENGINEER] = 2; countAxis[CLASS.COVERTOPS] = 1; countAxis[CLASS.FIELDOPS] = 0; countAllies[CLASS.SOLDIER] = 0; countAllies[CLASS.MEDIC] = 2; countAllies[CLASS.ENGINEER] = 2; countAllies[CLASS.COVERTOPS] = 1; countAllies[CLASS.FIELDOPS] = 0; } else { countAxis[CLASS.SOLDIER] = 0; countAxis[CLASS.MEDIC] = 2; countAxis[CLASS.ENGINEER] = 2; countAxis[CLASS.COVERTOPS] = 1; countAxis[CLASS.FIELDOPS] = 0; countAllies[CLASS.SOLDIER] = 0; countAllies[CLASS.MEDIC] = 2; countAllies[CLASS.ENGINEER] = 2; countAllies[CLASS.COVERTOPS] = 1; countAllies[CLASS.FIELDOPS] = 0; if (CLASS.SCIENTIST) { countAxis[CLASS.SCIENTIST] = 1; countAllies[CLASS.SCIENTIST] = 1; } if (CLASS.SUPER_SOLDIER) { countAxis[CLASS.SUPER_SOLDIER] = 1; countAllies[CLASS.SUPER_SOLDIER] = 1; } } global PostMapLoad = function() { ETUtil.MapStartTime = GetTime() - 1.75; // seems to be a bit of a delay Util.ProcessMovers(); if ( Map.SnipeMap || GetModName()=="Jaymod" && GetCvar("g_sniperwar")==1 || GetModName()=="nitmod" && GetCvar("g_war")==2 ) || GetModName()=="silent" && GetCvar("g_sniperwar")==1 ) { Util.SnipeMap(); } else if ( Map.PanzerMap || GetModName()=="Jaymod" && GetCvar("g_panzerwar")==1 || GetModName()=="nitmod" && GetCvar("g_war")==1 ) || GetModName()=="silent" && GetCvar("g_panzerwar")==1 ) { ETUtil.PanzerMap(); } if ( GetGameType() == 5 ) // last man standing { foreach(goal in Util.GoalTable()) { if(goal.GoalType!="AMMOCAB" && goal.GoalType!="HEALTHCAB") { goal.DisableGoal(true); } else { goal.SetAvailable(0,true); } } Util.MapDebugPrint( "Running " + GetMapName() + " in LMS mode." ); } if ( GetModName() == "infected" ) { foreach(goal in Util.GoalTable()) { goal.DisableGoal(true); } Map.DontDispenseAmmo = true; } }; print("ET autoexec script executed."); This post has been edited by mrcool: Jan 29 2017, 08:15 AM |
|
|
Lo-Fi Version | Time is now: 1st November 2024 - 04:32 AM |