mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-01 01:15:59 -04:00
Added objvar to control whether or not a bartender is spawned in cantinas.
This commit is contained in:
@@ -40,7 +40,7 @@ i i h i f f f f f f f s p
|
||||
1033375 0 object/static/structure/tatooine/pillar_ruined_large_style_01.iff 0 1320.15 5 1629.48 0.858528 0 -0.512767 0 $|
|
||||
1033376 0 object/static/structure/tatooine/wall_damaged_tatooine_large_style_01.iff 0 1392.17 3.02175 1643.47 0.786918 0 0.617057 0 $|
|
||||
1033377 0 object/static/structure/tatooine/wall_damaged_tatooine_large_style_01.iff 0 1400.04 3.02175 1645.89 -0.620985 0 0.783823 0 $|
|
||||
1082874 0 object/building/tatooine/cantina_tatooine.iff 0 1384.35 5 1325.87 0.945266 0 0.326302 0 theme_park.tatooine.mos_eisley.masterspawner $|
|
||||
1082874 0 object/building/tatooine/cantina_tatooine.iff 0 1384.35 5 1325.87 0.945266 0 0.326302 0 theme_park.tatooine.mos_eisley.masterspawner intSpawnBartender|0|0|$|
|
||||
1082875 1082874 object/cell/cell.iff 1 0 0 0 1 0 0 0 $|
|
||||
1082876 1082874 object/cell/cell.iff 2 0 0 0 1 0 0 0 $|
|
||||
1082877 1082874 object/cell/cell.iff 3 0 0 0 1 0 0 0 $|
|
||||
|
||||
@@ -8,5 +8,5 @@
|
||||
|
||||
@class object_template 5
|
||||
scripts = +["structure.municipal.cantina"]
|
||||
objvars = +["healing.canhealshock"=1]
|
||||
objvars = +["healing.canhealshock"=1, "intSpawnBartender"=1]
|
||||
moveFlags = [ MF_gm ]
|
||||
|
||||
@@ -25,18 +25,20 @@ public class cantina extends script.base_script
|
||||
{
|
||||
return SCRIPT_OVERRIDE;
|
||||
}
|
||||
behindBar = new location(8.54f, -0.89f, 0.14f, planet, cantina);
|
||||
obj_id bartender = create.object("bartender", behindBar);
|
||||
setYaw(bartender, 87);
|
||||
// removed static setting as it caused bartenders to just stay put. They move around the bar
|
||||
// so this caused a memory leak by storing points it couldn't navigate to.
|
||||
// setCreatureStatic(bartender, true);
|
||||
if(getIntObjVar(self,"intSpawnBartender") == 1) {
|
||||
behindBar = new location(8.54f, -0.89f, 0.14f, planet, cantina);
|
||||
obj_id bartender = create.object("bartender", behindBar);
|
||||
setYaw(bartender, 87);
|
||||
// removed static setting as it caused bartenders to just stay put. They move around the bar
|
||||
// so this caused a memory leak by storing points it couldn't navigate to.
|
||||
// setCreatureStatic(bartender, true);
|
||||
|
||||
setInvulnerable(bartender, true);
|
||||
attachScript(bartender, "npc.bartender.base");
|
||||
attachScript(bartender, "npc.bartender.listen");
|
||||
ai_lib.setDefaultCalmMood(bartender, "npc_imperial");
|
||||
//ai_lib.setDefaultCalmBehavior(self, ai_lib.BEHAVIOR_SENTINEL);
|
||||
setInvulnerable(bartender, true);
|
||||
attachScript(bartender, "npc.bartender.base");
|
||||
attachScript(bartender, "npc.bartender.listen");
|
||||
ai_lib.setDefaultCalmMood(bartender, "npc_imperial");
|
||||
//ai_lib.setDefaultCalmBehavior(self, ai_lib.BEHAVIOR_SENTINEL);
|
||||
}
|
||||
if (hasScript(self, "theme_park.lok.cantina"))
|
||||
{
|
||||
if (hasScript(self, "city.imperial_crackdown.crackdown_cantina"))
|
||||
|
||||
Reference in New Issue
Block a user