repo_name stringlengths 6 69 | path stringlengths 6 178 | copies stringclasses 278
values | size stringlengths 4 7 | content stringlengths 671 917k | license stringclasses 15
values |
|---|---|---|---|---|---|
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/food/dessert_deneelian_fizz_pudding.lua | 1 | 3477 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_food_dessert_deneelian_fizz_pudding = object_draft_schematic_food_shared_dessert_deneelian_fizz_pudding:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Deneelian Fizz Pudding",
craftingToolTab = 4, -- (See DraftSchematicObjectTemplate.h)
complexity = 15,
size = 1,
xpType = "crafting_food_general",
xp = 200,
assemblySkill = "food_assembly",
experimentingSkill = "food_experimentation",
customizationSkill = "food_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_food_ingredients_n", "craft_food_ingredients_n", "craft_food_ingredients_n", "craft_food_ingredients_n", "craft_food_ingredients_n"},
ingredientTitleNames = {"carbosyrup", "milk", "first_gelatin", "second_gelatin", "additive"},
ingredientSlotType = {1, 0, 0, 0, 3},
resourceTypes = {"object/tangible/component/food/shared_ingredient_carbosyrup.iff", "milk", "bone", "hide_leathery", "object/tangible/food/crafted/additive/shared_additive_heavy.iff"},
resourceQuantities = {4, 10, 20, 20, 1},
contribution = {100, 100, 100, 100, 100},
targetTemplate = "object/tangible/food/crafted/dessert_deneelian_fizz_pudding.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_food_dessert_deneelian_fizz_pudding, "object/draft_schematic/food/dessert_deneelian_fizz_pudding.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/instrument/organ_max_rebo.lua | 3 | 2224 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_instrument_organ_max_rebo = object_tangible_instrument_shared_organ_max_rebo:new {
}
ObjectTemplates:addTemplate(object_tangible_instrument_organ_max_rebo, "object/tangible/instrument/organ_max_rebo.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/screenplays/quest_tasks/patrol.lua | 1 | 4724 | local ObjectManager = require("managers.object.object_manager")
local QuestManager = require("managers.quest.quest_manager")
local Logger = require("utils.logger")
Patrol = Task:new {
-- Task properties
taskName = "",
-- Patrol properties
waypointName = "",
numPoints = 0,
areaSize = 0,
originX = 0,
originY = 0,
forceSpawn = false,
onPlayerKilled = nil,
onEnteredActiveArea = nil
}
function Patrol:setupPatrolPoints(pCreature)
local playerID = SceneObject(pCreature):getObjectID()
local radius = 1024 -- Default radius
local curQuest = QuestManager.getCurrentQuestID(pCreature)
local pQuest = getQuestInfo(curQuest)
if (pQuest ~= nil) then
local questRadius = LuaQuestInfo(pQuest):getQuestParameter()
if (questRadius ~= "" and questRadius ~= nil) then
radius = tonumber(questRadius)
end
end
for i = 1, self.numPoints, 1 do
local offsetX = getRandomNumber(-75, 75)
local offsetY = getRandomNumber(-75, 75)
local offsetTheta = getRandomNumber(-2, 2)
local theta = (i * 45 + offsetTheta) * 0.0175;
local x = (self.originX + offsetX) + (radius * math.cos(theta))
local y = (self.originY + offsetY) + (radius * math.sin(theta))
local planetName = SceneObject(pCreature):getZoneName()
local spawnPoint = getSpawnPoint(planetName, x, y, 0, 200, self.forceSpawn)
local pActiveArea = spawnActiveArea(planetName, "object/active_area.iff", spawnPoint[1], spawnPoint[2], spawnPoint[3], self.areaSize, 0)
if (pActiveArea == nil) then
return nil
end
local areaID = SceneObject(pActiveArea):getObjectID()
writeData(areaID .. self.taskName .. "ownerID", playerID)
writeData(areaID .. self.taskName .. "waypointNum", i)
writeData(playerID .. self.taskName .. "waypointNum" .. i, areaID)
createObserver(ENTEREDAREA, self.taskName, "handleEnteredAreaEvent", pActiveArea)
local pGhost = CreatureObject(pCreature):getPlayerObject()
if (pGhost ~= nil) then
local waypointID = PlayerObject(pGhost):addWaypoint(planetName, self.waypointName, "", spawnPoint[1], spawnPoint[3], WAYPOINTYELLOW, true, true, 0, 0)
writeData(areaID .. self.taskName .. "waypointID", waypointID)
end
end
end
function Patrol:handleEnteredAreaEvent(pActiveArea, pCreature)
if pActiveArea == nil or not SceneObject(pCreature):isPlayerCreature() then
return 0
end
local areaID = SceneObject(pActiveArea):getObjectID()
local ownerID = readData(areaID .. self.taskName .. "ownerID")
if ownerID == SceneObject(pCreature):getObjectID() then
local wpNum = readData(areaID .. self.taskName .. "waypointNum")
self:destroyWaypoint(pCreature, wpNum)
local wpDone = readData(ownerID .. ":patrolWaypointsReached") + 1
writeData(ownerID .. ":patrolWaypointsReached", wpDone)
self:onEnteredActiveArea(pCreature, pActiveArea)
SceneObject(pActiveArea):destroyObjectFromWorld()
return 1
end
return 0
end
function Patrol:destroyWaypoint(pCreature, num)
local playerID = SceneObject(pCreature):getObjectID()
local areaID = readData(playerID .. self.taskName .. "waypointNum" .. num)
local waypointNum = readData(areaID .. self.taskName .. "waypointNum")
local waypointID = readData(areaID .. self.taskName .. "waypointID")
local pGhost = CreatureObject(pCreature):getPlayerObject()
if (pGhost ~= nil) then
PlayerObject(pGhost):removeWaypoint(waypointID, true)
end
local pActiveArea = getSceneObject(areaID)
if (pActiveArea ~= nil) then
SceneObject(pActiveArea):destroyObjectFromWorld()
end
deleteData(playerID .. self.taskName .. "waypointNum" .. waypointNum)
deleteData(areaID .. self.taskName .. "waypointID")
deleteData(areaID .. self.taskName .. "waypointNum")
deleteData(areaID .. self.taskName .. "ownerID")
end
function Patrol:waypointCleanup(pCreature)
for i = 1, self.numPoints, 1 do
self:destroyWaypoint(pCreature, i)
end
end
function Patrol:failPatrol(pCreature)
self:waypointCleanup(pCreature)
local playerID = SceneObject(pCreature):getObjectID()
deleteData(playerID .. ":patrolWaypointsReached")
writeData(playerID .. ":failedPatrol", 1)
return true
end
function Patrol:taskStart(pCreature)
self:setupPatrolPoints(pCreature)
createObserver(OBJECTDESTRUCTION, self.taskName, "playerKilled", pCreature)
end
function Patrol:playerKilled(pCreature, pKiller, nothing)
if (pCreature == nil) then
return 0
end
self:callFunctionIfNotNil(self.onPlayerKilled, false, pCreature)
return 0
end
function Patrol:taskFinish(pCreature)
local playerID = SceneObject(pCreature):getObjectID()
deleteData(playerID .. ":patrolWaypointsReached")
deleteData(playerID .. ":failedPatrol")
dropObserver(OBJECTDESTRUCTION, self.taskName, "playerKilled", pCreature)
self:waypointCleanup(pCreature)
return true
end
return Patrol
| agpl-3.0 |
elijah513/SOHU-DBProxy | tests/suite/base/t/lm3.lua | 4 | 1033 | --[[ $%BEGINLICENSE%$
Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; version 2 of the
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
02110-1301 USA
$%ENDLICENSE%$ --]]
function read_query (packet)
if packet:byte() ~= proxy.COM_QUERY then
return
end
local query = packet:sub(2)
if query == 'select 1000' then
return proxy.global.simple_dataset('result','one thousand')
end
end
function read_query_result(inj)
end
| gpl-2.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/components/weapon_capacitor/cap_corellian_cruiser_grade_cap5.lua | 3 | 2384 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_ship_components_weapon_capacitor_cap_corellian_cruiser_grade_cap5 = object_tangible_ship_components_weapon_capacitor_shared_cap_corellian_cruiser_grade_cap5:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_components_weapon_capacitor_cap_corellian_cruiser_grade_cap5, "object/tangible/ship/components/weapon_capacitor/cap_corellian_cruiser_grade_cap5.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/crafting/station/space_station.lua | 3 | 3833 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_crafting_station_space_station = object_tangible_crafting_station_shared_space_station:new {
templateType = CRAFTINGSTATION,
playerRaces = { "object/creature/player/bothan_male.iff",
"object/creature/player/bothan_female.iff",
"object/creature/player/human_male.iff",
"object/creature/player/human_female.iff",
"object/creature/player/ithorian_male.iff",
"object/creature/player/ithorian_female.iff",
"object/creature/player/moncal_male.iff",
"object/creature/player/moncal_female.iff",
"object/creature/player/rodian_male.iff",
"object/creature/player/rodian_female.iff",
"object/creature/player/sullustan_male.iff",
"object/creature/player/sullustan_female.iff",
"object/creature/player/trandoshan_male.iff",
"object/creature/player/trandoshan_female.iff",
"object/creature/player/twilek_male.iff",
"object/creature/player/twilek_female.iff",
"object/creature/player/wookiee_male.iff",
"object/creature/player/wookiee_female.iff",
"object/creature/player/zabrak_male.iff",
"object/creature/player/zabrak_female.iff" },
customizationOptions = {},
customizationDefaults = {},
stationType = 5,
complexityLevel = 100,
numberExperimentalProperties = {1, 1, 1, 1},
experimentalProperties = {"XX", "XX", "XX", "CD"},
experimentalWeights = {1, 1, 1, 1},
experimentalGroupTitles = {"null", "null", "null", "exp_effectiveness"},
experimentalSubGroupTitles = {"null", "null", "hitpoints", "usemodifier"},
experimentalMin = {0, 0, 1000, -15},
experimentalMax = {0, 0, 1000, 15},
experimentalCombineType = {0, 0, 4, 1},
experimentalPrecision = {0, 0, 0, 0},
experimentalCombineType = {1, 1, 1, 1},
}
ObjectTemplates:addTemplate(object_tangible_crafting_station_space_station, "object/tangible/crafting/station/space_station.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/building/poi/yavin4_imperial_patrol_medium1.lua | 2 | 2282 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_building_poi_yavin4_imperial_patrol_medium1 = object_building_poi_shared_yavin4_imperial_patrol_medium1:new {
gameObjectType = 531,
}
ObjectTemplates:addTemplate(object_building_poi_yavin4_imperial_patrol_medium1, "object/building/poi/yavin4_imperial_patrol_medium1.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/weapon/melee/sword/base/crafted_sword_base.lua | 2 | 2290 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_weapon_melee_sword_base_crafted_sword_base = object_weapon_melee_sword_base_shared_crafted_sword_base:new {
weaponType = ONEHANDMELEEWEAPON,
}
ObjectTemplates:addTemplate(object_weapon_melee_sword_base_crafted_sword_base, "object/weapon/melee/sword/base/crafted_sword_base.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/components/droid_interface/ddi_sds_imperial_4.lua | 3 | 2324 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_ship_components_droid_interface_ddi_sds_imperial_4 = object_tangible_ship_components_droid_interface_shared_ddi_sds_imperial_4:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_components_droid_interface_ddi_sds_imperial_4, "object/tangible/ship/components/droid_interface/ddi_sds_imperial_4.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/structure/naboo/arbor_long_s02.lua | 3 | 2236 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_structure_naboo_arbor_long_s02 = object_static_structure_naboo_shared_arbor_long_s02:new {
}
ObjectTemplates:addTemplate(object_static_structure_naboo_arbor_long_s02, "object/static/structure/naboo/arbor_long_s02.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/hair/human/hair_human_male_s14.lua | 3 | 2244 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_hair_human_hair_human_male_s14 = object_tangible_hair_human_shared_hair_human_male_s14:new {
}
ObjectTemplates:addTemplate(object_tangible_hair_human_hair_human_male_s14, "object/tangible/hair/human/hair_human_male_s14.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/lair/structure/interior/lair_cave_large_interior_with_nest_perlek.lua | 1 | 2427 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_lair_structure_interior_lair_cave_large_interior_with_nest_perlek = object_tangible_lair_structure_interior_shared_lair_cave_large_interior_with_nest_perlek:new {
objectMenuComponent = "LairMenuComponent",
}
ObjectTemplates:addTemplate(object_tangible_lair_structure_interior_lair_cave_large_interior_with_nest_perlek, "object/tangible/lair/structure/interior/lair_cave_large_interior_with_nest_perlek.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/wearables/shirt/shirt_s13.lua | 3 | 4604 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_wearables_shirt_shirt_s13 = object_tangible_wearables_shirt_shared_shirt_s13:new {
playerRaces = { "object/creature/player/bothan_male.iff",
"object/creature/player/bothan_female.iff",
"object/creature/player/human_male.iff",
"object/creature/player/human_female.iff",
"object/creature/player/moncal_male.iff",
"object/creature/player/moncal_female.iff",
"object/creature/player/rodian_male.iff",
"object/creature/player/rodian_female.iff",
"object/creature/player/sullustan_male.iff",
"object/creature/player/sullustan_female.iff",
"object/creature/player/trandoshan_male.iff",
"object/creature/player/trandoshan_female.iff",
"object/creature/player/twilek_male.iff",
"object/creature/player/twilek_female.iff",
"object/creature/player/zabrak_male.iff",
"object/creature/player/zabrak_female.iff",
"object/mobile/vendor/aqualish_female.iff",
"object/mobile/vendor/aqualish_male.iff",
"object/mobile/vendor/bith_female.iff",
"object/mobile/vendor/bith_male.iff",
"object/mobile/vendor/bothan_female.iff",
"object/mobile/vendor/bothan_male.iff",
"object/mobile/vendor/devaronian_male.iff",
"object/mobile/vendor/gran_male.iff",
"object/mobile/vendor/human_female.iff",
"object/mobile/vendor/human_male.iff",
"object/mobile/vendor/ishi_tib_male.iff",
"object/mobile/vendor/moncal_female.iff",
"object/mobile/vendor/moncal_male.iff",
"object/mobile/vendor/nikto_male.iff",
"object/mobile/vendor/quarren_male.iff",
"object/mobile/vendor/rodian_female.iff",
"object/mobile/vendor/rodian_male.iff",
"object/mobile/vendor/sullustan_female.iff",
"object/mobile/vendor/sullustan_male.iff",
"object/mobile/vendor/trandoshan_female.iff",
"object/mobile/vendor/trandoshan_male.iff",
"object/mobile/vendor/twilek_female.iff",
"object/mobile/vendor/twilek_male.iff",
"object/mobile/vendor/weequay_male.iff",
"object/mobile/vendor/zabrak_female.iff",
"object/mobile/vendor/zabrak_male.iff" },
numberExperimentalProperties = {1, 1, 1, 1},
experimentalProperties = {"XX", "XX", "XX", "XX"},
experimentalWeights = {1, 1, 1, 1},
experimentalGroupTitles = {"null", "null", "null", "null"},
experimentalSubGroupTitles = {"null", "null", "sockets", "hitpoints"},
experimentalMin = {0, 0, 0, 1000},
experimentalMax = {0, 0, 0, 1000},
experimentalPrecision = {0, 0, 0, 0},
experimentalCombineType = {0, 0, 4, 4},
}
ObjectTemplates:addTemplate(object_tangible_wearables_shirt_shirt_s13, "object/tangible/wearables/shirt/shirt_s13.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/quest/coa/coa3_imperial_research_captain.lua | 1 | 1262 | coa3_imperial_research_captain = Creature:new {
objectName = "@mob/creature_names:crackdown_imperial_army_captain",
randomNameType = NAME_GENERIC,
randomNameTag = true,
socialGroup = "imperial",
faction = "imperial",
level = 45,
chanceHit = 0.46,
damageMin = 365,
damageMax = 440,
baseXp = 4461,
baseHAM = 9600,
baseHAMmax = 11800,
armor = 0,
resists = {0,35,0,0,0,0,0,0,-1},
meatType = "",
meatAmount = 0,
hideType = "",
hideAmount = 0,
boneType = "",
boneAmount = 0,
milk = 0,
tamingChance = 0,
ferocity = 0,
pvpBitmask = ATTACKABLE,
creatureBitmask = PACK + HERD + KILLER,
optionsBitmask = AIENABLED,
diet = HERBIVORE,
templates = {"object/mobile/dressed_imperial_captain_m.iff"},
lootGroups = {
{
groups = {
{group = "junk", chance = 5000000},
{group = "rifles", chance = 1000000},
{group = "pistols", chance = 1000000},
{group = "melee_weapons", chance = 1000000},
{group = "carbines", chance = 1000000},
{group = "wearables_common", chance = 1000000}
}
}
},
weapons = {"rebel_weapons_heavy"},
conversationTemplate = "",
attacks = merge(commandomaster,marksmanmaster,brawlermaster)
}
CreatureTemplates:addCreatureTemplate(coa3_imperial_research_captain, "coa3_imperial_research_captain")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/commands/initializeComponent.lua | 4 | 2150 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
--which carries forward this exception.
--true = 1, false = 0
InitializeComponentCommand = {
name = "initializecomponent",
}
AddCommand(InitializeComponentCommand)
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/dressed_commando_trainer_trandoshan_male_01.lua | 1 | 2333 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_dressed_commando_trainer_trandoshan_male_01 = object_mobile_shared_dressed_commando_trainer_trandoshan_male_01:new {
objectMenuComponent = "TrainerMenuComponent"
}
ObjectTemplates:addTemplate(object_mobile_dressed_commando_trainer_trandoshan_male_01, "object/mobile/dressed_commando_trainer_trandoshan_male_01.iff")
| agpl-3.0 |
ouyangruoxue/pokerServer | server/lua/api/html/client_management/banner_edit.lua | 1 | 1228 | --[[
banner的渲染文件
]]
local template = require "resty.template"
local reqArgs = require "common.request_args"
local responeData = require"common.api_data_help"
local cjson = require "cjson"
local session =require "resty.session".open()
local currentRequestArgs = reqArgs.new()
local args = currentRequestArgs.getArgs()
local db = require "db.banner.banner_db_operation"
local bannerDbOp = db.new()
local temp={}
if args.id_pk and args.id_pk~="" then
temp.id_pk=args.id_pk
end
local dbres,err = bannerDbOp.getOneFromBannerSql_web(temp)
if not dbres or type(dbres) ~= "table" then
local result = responeData.new_failed({},err)
ngx.print(cjson.encode(result))
return
end
-- session必须开启缓存才能够使用,为了便捷开发,先不判断,而是直接跳转到index页面
-- if args.token == session.data.token then
-- -- 从登陆跳过来,带了token才能跳转到html/index.html界面
-- local address="/html/index.html"
-- local model={}
-- template.render(address,model)
-- else
-- result = responeData.new_failed({},err)
-- end
local address="/html/client_management/banner_edit.html"
banner_edit_data=dbres
local model={banner_edit_data}
template.render(address,model) | mit |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/deed/corellia/player_house_deed/serverobjects.lua | 3 | 2307 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
--Children folder includes
-- Server Objects
includeFile("tangible/deed/corellia/player_house_deed/corellia_house_large_deed.lua")
includeFile("tangible/deed/corellia/player_house_deed/corellia_house_medium_deed.lua")
includeFile("tangible/deed/corellia/player_house_deed/corellia_house_small_deed.lua")
| agpl-3.0 |
NeuroRoboticTech/AnimatLabPublicSource | Libraries/AnimatSim/Projects_VisualStudio/Projects.lua | 1 | 1095 |
project "AnimatSim"
language "C++"
kind "SharedLib"
files { "../*.h",
"../*.cpp"}
includedirs { "../../../include",
"../../StdUtils",
"../../../../3rdParty/boost_1_54_0" }
libdirs { "../../../lib",
"../../../../3rdParty/boost_1_54_0/lib" }
configuration { "Debug or Debug_Double", "windows" }
defines { "WIN32", "_DEBUG", "_WINDOWS", "_USRDLL", "ANIMATLIBRARY_EXPORTS", "_CRT_SECURE_NO_WARNINGS" }
flags { "Symbols", "SEH" }
targetdir ("Debug")
targetname ("AnimatSim_vc10D")
postbuildcommands { "Copy $(OutDir)AnimatSim_vc10D.lib ..\\..\\..\\lib\\AnimatSim_vc10D.lib",
"Copy $(TargetPath) ..\\..\\..\\bin" }
configuration { "Release or Release_Double", "windows" }
defines { "WIN32", "NDEBUG", "_WINDOWS", "_USRDLL", "ANIMATLIBRARY_EXPORTS" }
flags { "Optimize", "SEH" }
targetdir ("Release")
targetname ("AnimatSim_vc10")
postbuildcommands { "Copy $(OutDir)AnimatSim_vc10.lib ..\\..\\..\\lib\\AnimatSim_vc10.lib",
"Copy $(TargetPath) ..\\..\\..\\bin" }
| bsd-3-clause |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/dressed_rebel_lieutenant_general_twilek_female_01.lua | 3 | 2312 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_dressed_rebel_lieutenant_general_twilek_female_01 = object_mobile_shared_dressed_rebel_lieutenant_general_twilek_female_01:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_rebel_lieutenant_general_twilek_female_01, "object/mobile/dressed_rebel_lieutenant_general_twilek_female_01.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/chemistry/medpack_poison_health_c.lua | 1 | 3713 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_chemistry_medpack_poison_health_c = object_draft_schematic_chemistry_shared_medpack_poison_health_c:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Health Poison Delivery Unit - C",
craftingToolTab = 64, -- (See DraftSchematicObjectTemplate.h)
complexity = 35,
size = 3,
xpType = "crafting_bio_engineer_creature",
xp = 100,
assemblySkill = "bio_engineer_assembly",
experimentingSkill = "bio_engineer_experimentation",
customizationSkill = "bio_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_chemical_ingredients_n", "craft_chemical_ingredients_n", "craft_chemical_ingredients_n", "craft_chemical_ingredients_n", "craft_chemical_ingredients_n", "craft_chemical_ingredients_n"},
ingredientTitleNames = {"body_shell", "organic_element", "inorganic_element", "delivery_medium", "drug_duration_compound", "drug_strength_compound"},
ingredientSlotType = {0, 0, 0, 1, 1, 1},
resourceTypes = {"metal_nonferrous", "vegetable_fungi", "fuel_petrochem_liquid", "object/tangible/component/chemistry/shared_dispersal_mechanism.iff", "object/tangible/component/chemistry/shared_resilience_compound.iff", "object/tangible/component/chemistry/shared_infection_amplifier.iff"},
resourceQuantities = {8, 20, 20, 1, 2, 2},
contribution = {100, 100, 100, 100, 100, 100},
targetTemplate = "object/tangible/medicine/crafted/medpack_poison_health_c.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_chemistry_medpack_poison_health_c, "object/draft_schematic/chemistry/medpack_poison_health_c.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/hair/zabrak/objects.lua | 3 | 77448 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
--which carries forward this exception.
object_tangible_hair_zabrak_shared_hair_zabrak_female_s01 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_female_s01.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_f_hair_s01.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3692198825,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_female_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_female_s01, "object/tangible/hair/zabrak/shared_hair_zabrak_female_s01.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_female_s02 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_female_s02.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_f_hair_s02.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 117822270,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_female_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_female_s02, "object/tangible/hair/zabrak/shared_hair_zabrak_female_s02.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_female_s03 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_female_s03.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_f_hair_s03.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 1309193395,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_female_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_female_s03, "object/tangible/hair/zabrak/shared_hair_zabrak_female_s03.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_female_s04 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_female_s04.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_f_hair_s04.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3052117927,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_female_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_female_s04, "object/tangible/hair/zabrak/shared_hair_zabrak_female_s04.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_female_s05 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_female_s05.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_f_hair_s05.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 4242995242,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_female_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_female_s05, "object/tangible/hair/zabrak/shared_hair_zabrak_female_s05.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_female_s06 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_female_s06.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_f_hair_s06.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 670126269,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_female_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_female_s06, "object/tangible/hair/zabrak/shared_hair_zabrak_female_s06.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_female_s07 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_female_s07.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_f_hair_s07.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 1862022960,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_female_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_female_s07, "object/tangible/hair/zabrak/shared_hair_zabrak_female_s07.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_female_s08 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_female_s08.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_f_hair_s08.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3572898594,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_female_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_female_s08, "object/tangible/hair/zabrak/shared_hair_zabrak_female_s08.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_female_s09 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_female_s09.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_f_hair_s09.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 2650504367,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_female_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_female_s09, "object/tangible/hair/zabrak/shared_hair_zabrak_female_s09.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_female_s10 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_female_s10.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_f_hair_s10.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 2385973596,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_female_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_female_s10, "object/tangible/hair/zabrak/shared_hair_zabrak_female_s10.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_female_s11 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_female_s11.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_f_hair_s11.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3342497489,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_female_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_female_s11, "object/tangible/hair/zabrak/shared_hair_zabrak_female_s11.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_female_s12 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_female_s12.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_f_hair_s12.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 472768070,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_female_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_female_s12, "object/tangible/hair/zabrak/shared_hair_zabrak_female_s12.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_female_s13 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_female_s13.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_f_hair_s13.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 1428208075,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_female_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_female_s13, "object/tangible/hair/zabrak/shared_hair_zabrak_female_s13.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_female_s14 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_female_s14.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_f_hair_s14.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 2932052703,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_female_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_female_s14, "object/tangible/hair/zabrak/shared_hair_zabrak_female_s14.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_female_s15 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_female_s15.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_f_hair_s15.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3889100114,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_female_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_female_s15, "object/tangible/hair/zabrak/shared_hair_zabrak_female_s15.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_female_s16 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_female_s16.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_f_hair_s16.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 1020878277,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_female_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_female_s16, "object/tangible/hair/zabrak/shared_hair_zabrak_female_s16.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_female_s17 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_female_s17.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_f_hair_s17.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 1976842824,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_female_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_female_s17, "object/tangible/hair/zabrak/shared_hair_zabrak_female_s17.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_female_s18 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_female_s18.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_f_hair_s18.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3487438426,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_female_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_female_s18, "object/tangible/hair/zabrak/shared_hair_zabrak_female_s18.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_female_s19 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_female_s19.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_f_hair_s19.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 2262004183,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_female_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_female_s19, "object/tangible/hair/zabrak/shared_hair_zabrak_female_s19.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_female_s20 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_female_s20.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_f_hair_s20.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 2739865300,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_female_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_female_s20, "object/tangible/hair/zabrak/shared_hair_zabrak_female_s20.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_male_s01 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_male_s01.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_m_hair_s01.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3250935101,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_male_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_male_s01, "object/tangible/hair/zabrak/shared_hair_zabrak_male_s01.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_male_s02 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_male_s02.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_m_hair_s02.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 450035114,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_male_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_male_s02, "object/tangible/hair/zabrak/shared_hair_zabrak_male_s02.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_male_s03 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_male_s03.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_m_hair_s03.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 1407162919,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_male_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_male_s03, "object/tangible/hair/zabrak/shared_hair_zabrak_male_s03.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_male_s04 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_male_s04.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_m_hair_s04.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 2822549811,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_male_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_male_s04, "object/tangible/hair/zabrak/shared_hair_zabrak_male_s04.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_male_s05 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_male_s05.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_m_hair_s05.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3778139838,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_male_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_male_s05, "object/tangible/hair/zabrak/shared_hair_zabrak_male_s05.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_male_s06 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_male_s06.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_m_hair_s06.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 975601193,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_male_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_male_s06, "object/tangible/hair/zabrak/shared_hair_zabrak_male_s06.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_male_s07 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_male_s07.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_m_hair_s07.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 1932204452,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_male_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_male_s07, "object/tangible/hair/zabrak/shared_hair_zabrak_male_s07.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_male_s08 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_male_s08.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_m_hair_s08.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3374396854,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_male_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_male_s08, "object/tangible/hair/zabrak/shared_hair_zabrak_male_s08.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_male_s09 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_male_s09.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_m_hair_s09.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 2150388283,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_male_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_male_s09, "object/tangible/hair/zabrak/shared_hair_zabrak_male_s09.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_male_s10 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_male_s10.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_m_hair_s10.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 2480947144,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_male_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_male_s10, "object/tangible/hair/zabrak/shared_hair_zabrak_male_s10.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_male_s11 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_male_s11.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_m_hair_s11.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3672987717,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_male_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_male_s11, "object/tangible/hair/zabrak/shared_hair_zabrak_male_s11.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_male_s12 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_male_s12.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_m_hair_s12.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 33222866,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_male_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_male_s12, "object/tangible/hair/zabrak/shared_hair_zabrak_male_s12.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_male_s13 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_male_s13.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_m_hair_s13.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 1224185695,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_male_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_male_s13, "object/tangible/hair/zabrak/shared_hair_zabrak_male_s13.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_male_s14 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_male_s14.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_m_hair_s14.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3004480587,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_male_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_male_s14, "object/tangible/hair/zabrak/shared_hair_zabrak_male_s14.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_male_s15 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_male_s15.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_m_hair_s15.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 4195998662,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_male_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_male_s15, "object/tangible/hair/zabrak/shared_hair_zabrak_male_s15.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_male_s16 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_male_s16.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_m_hair_s16.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 554595153,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_male_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_male_s16, "object/tangible/hair/zabrak/shared_hair_zabrak_male_s16.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_male_s17 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_male_s17.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_m_hair_s17.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 1745032412,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_male_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_male_s17, "object/tangible/hair/zabrak/shared_hair_zabrak_male_s17.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_male_s18 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_male_s18.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_m_hair_s18.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3523819726,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_male_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_male_s18, "object/tangible/hair/zabrak/shared_hair_zabrak_male_s18.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_male_s19 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_male_s19.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_m_hair_s19.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 2600755011,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_male_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_male_s19, "object/tangible/hair/zabrak/shared_hair_zabrak_male_s19.iff")
object_tangible_hair_zabrak_shared_hair_zabrak_male_s20 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/hair/zabrak/shared_hair_zabrak_male_s20.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/zab_m_hair_s20.sat",
arrangementDescriptorFilename = "abstract/slot/arrangement/wearables/hair.iff",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@hair_detail:hair",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "@hair_lookat:hair",
noBuildRadius = 0,
objectName = "@hair_name:hair",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3197642816,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/hair/base/shared_hair_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_base.iff", "object/tangible/hair/zabrak/base/shared_hair_zabrak_male_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_hair_zabrak_shared_hair_zabrak_male_s20, "object/tangible/hair/zabrak/shared_hair_zabrak_male_s20.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/dressed_disable_sidequest_droid.lua | 3 | 2240 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_dressed_disable_sidequest_droid = object_mobile_shared_dressed_disable_sidequest_droid:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_disable_sidequest_droid, "object/mobile/dressed_disable_sidequest_droid.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/ship/blacksun_medium_s04_tier5.lua | 3 | 2208 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_ship_blacksun_medium_s04_tier5 = object_ship_shared_blacksun_medium_s04_tier5:new {
}
ObjectTemplates:addTemplate(object_ship_blacksun_medium_s04_tier5, "object/ship/blacksun_medium_s04_tier5.iff")
| agpl-3.0 |
sprunk/Zero-K | LuaRules/Configs/icon_generator.lua | 1 | 10208 | -- $Id: icon_generator.lua 4354 2009-04-11 14:32:28Z licho $
-----------------------------------------------------------------------
-----------------------------------------------------------------------
--
-- Icon Generator Config File
--
--// Info
if (info) then
local ratios = {["5to4"]=(4/5)} --{["16to10"]=(10/16), ["1to1"]=(1/1), ["5to4"]=(4/5)} --, ["4to3"]=(3/4)}
local resolutions = {{64,64}} --{{128,128},{64,64}}
local schemes = {""}
return schemes,resolutions,ratios
end
-----------------------------------------------------------------------
-----------------------------------------------------------------------
--// filename ext
imageExt = ".png"
--// render into a fbo in 4x size
renderScale = 4
--// faction colors (check (and needs) LuaRules/factions.lua)
factionTeams = {
arm = 0, --// arm
core = 1, --// core
chicken = 2, --// chicken
unknown = 2, --// unknown
}
factionColors = {
arm = {0.05, 0.96, 0.95}, --// arm
core = {0.05, 0.96, 0.95}, --// core
chicken = {1.0,0.8,0.2}, --// chicken
unknown = {0.05, 0.96, 0.95}, --// unknown
}
-----------------------------------------------------------------------
-----------------------------------------------------------------------
--// render options textured
textured = (scheme~="bw")
lightAmbient = {1.1,1.1,1.1}
lightDiffuse = {0.4,0.4,0.4}
lightPos = {-0.2,0.4,0.5}
--// Ambient Occlusion & Outline settings
aoPower = ((scheme=="bw") and 1.5) or 1
aoContrast = ((scheme=="bw") and 2.5) or 1
aoTolerance = 0
olContrast = ((scheme=="bw") and 5) or 10
olTolerance = 0
--// halo (white)
halo = false --(scheme~="bw")
-----------------------------------------------------------------------
-----------------------------------------------------------------------
--// backgrounds
background = true
local function Greater30(a) return a>30; end
local function GreaterEq15(a) return a>=15; end
local function GreaterZero(a) return a>0; end
local function GreaterEqZero(a) return a>=0; end
local function GreaterFour(a) return a>4; end
local function LessEqZero(a) return a<=0; end
local function IsCoreOrChicken(a)
if a then return a.chicken
else return false end
end
local function IsHover(a)
return a and a.name and string.find(a.name, "hover") ~= nil
end
backgrounds = {
--// stuff that needs hardcoding
{check={name="shipcarrier"}, texture="LuaRules/Images/IconGenBkgs/bg_water.png"},
--[[terraforms
{check={name="rampup"}, texture="LuaRules/Images/IconGenBkgs/rampup.png"},
{check={name="rampdown"}, texture="LuaRules/Images/IconGenBkgs/rampdown.png"},
{check={name="levelterra"}, texture="LuaRules/Images/IconGenBkgs/level.png"},
{check={name="armblock"}, texture="LuaRules/Images/IconGenBkgs/block.png"},
{check={name="corblock"}, texture="LuaRules/Images/IconGenBkgs/block.png"},
{check={name="armtrench"}, texture="LuaRules/Images/IconGenBkgs/trench.png"},
{check={name="cortrench"}, texture="LuaRules/Images/IconGenBkgs/trench.png"},
]]--
--//air
{check={canFly=true}, texture="LuaRules/Images/IconGenBkgs/bg_air.png"},
--//hovers
{check={factions=IsCoreOrChicken,moveDef=IsHover}, texture="LuaRules/Images/IconGenBkgs/bg_hover_rock.png"},
{check={moveDef=IsHover}, texture="LuaRules/Images/IconGenBkgs/bg_hover.png"},
--//subs
{check={waterline=GreaterEq15,minWaterDepth=GreaterZero}, texture="LuaRules/Images/IconGenBkgs/bg_underwater.png"},
{check={floatOnWater=false,minWaterDepth=GreaterFour}, texture="LuaRules/Images/IconGenBkgs/bg_underwater.png"},
--//sea
{check={floatOnWater=true,minWaterDepth=GreaterZero}, texture="LuaRules/Images/IconGenBkgs/bg_water.png"},
--//amphibous
{check={factions=IsCoreOrChicken,maxWaterDepth=Greater30,minWaterDepth=LessEqZero}, texture="LuaRules/Images/IconGenBkgs/bg_amphibous_rock.png"},
{check={maxWaterDepth=Greater30,minWaterDepth=LessEqZero}, texture="LuaRules/Images/IconGenBkgs/bg_amphibous.png"},
--//ground
{check={factions=IsCoreOrChicken}, texture="LuaRules/Images/IconGenBkgs/bg_ground_rock.png"},
{check={}, texture="LuaRules/Images/IconGenBkgs/bg_ground.png"},
}
-----------------------------------------------------------------------
-----------------------------------------------------------------------
--// default settings for rendering
--//zoom := used to make all model icons same in size (DON'T USE, it is just for auto-configuration!)
--//offset := used to center the model in the fbo (not in the final icon!) (DON'T USE, it is just for auto-configuration!)
--//rot := facing direction
--//angle := topdown angle of the camera (0 degree = frontal, 90 degree = topdown)
--//clamp := clip everything beneath it (hide underground stuff)
--//scale := render the model x times as large and then scale down, to replaces missing AA support of FBOs (and fix rendering of very tine structures like antennas etc.))
--//unfold := unit needs cob to unfolds
--//move := send moving cob events (works only with unfold)
--//attack := send attack cob events (works only with unfold)
--//shotangle := vertical aiming, useful for arties etc. (works only with unfold+attack)
--//wait := wait that time in gameframes before taking the screenshot (default 300) (works only with unfold)
--//border := free space around the final icon (in percent/100)
--//empty := empty model (used for fake units in CA)
--//attempts := number of tries to scale the model to fit in the icon
defaults = {border=0.05, angle=45, rot="right", clamp=-10000, scale=1.5, empty=false, attempts=10, wait=120, zoom=1.0, offset={0,0,0},};
-----------------------------------------------------------------------
-----------------------------------------------------------------------
--// per unitdef settings
unitConfigs = {
[UnitDefNames.staticradar.id] = {
scale = 3,
rot = 200,
clamp = 10,
},
[UnitDefNames.staticjammer.id] = {
rot = -45,
},
[UnitDefNames.staticnuke.id] = {
clamp = 0,
},
[UnitDefNames.hoverraid.id] = {
clamp = 0,
},
[UnitDefNames.turretmissile.id] = {
clamp = 2,
},
[UnitDefNames.turretheavylaser.id] = {
clamp = 2,
},
[UnitDefNames.vehscout.id] = {
border = 0.156,
},
[UnitDefNames.gunshipbomb.id] = {
border = 0.156,
},
[UnitDefNames.gunshipemp.id] = {
border = 0.125,
},
[UnitDefNames.vehraid.id] = {
border = 0.125,
},
[UnitDefNames.spiderscout.id] = {
border = 0.125,
},
[UnitDefNames.jumpsumo.id] = {
unfold = true,
},
[UnitDefNames.jumpraid.id] = {
unfold = true,
},
[UnitDefNames.shieldskirm.id] = {
unfold = true,
},
[UnitDefNames.shieldshield.id] = {
unfold = true,
},
[UnitDefNames.staticshield.id] = {
unfold = true,
},
[UnitDefNames.tankarty.id] = {
unfold = true,
attack = true,
shotangle = 45,
wait = 120,
},
[UnitDefNames.shieldraid.id] = {
unfold = true,
attack = true,
wait = 120,
},
[UnitDefNames.turretgauss.id] = {
unfold = true,
attack = true,
wait = 50,
},
[UnitDefNames.spiderantiheavy.id] = {
unfold = true,
},
[UnitDefNames.turretantiheavy.id] = {
unfold = true,
},
[UnitDefNames.staticheavyradar.id] = {
unfold = true,
wait = 225,
},
[UnitDefNames.energysolar.id] = {
unfold = true,
},
[UnitDefNames.cloaksnipe.id] = {
-- unfold = true,
-- attack = true,
},
[UnitDefNames.cloakassault.id] = {
unfold = true,
attack = true,
},
[UnitDefNames.hoverdepthcharge.id] = {
unfold = true,
},
[UnitDefNames.cloakjammer.id] = {
unfold = true,
wait = 100,
},
[UnitDefNames.staticmex.id] = {
clamp = 0,
unfold = true,
wait = 600,
},
[UnitDefNames.turretheavy.id] = {
unfold = true,
},
[UnitDefNames.gunshipkrow.id] = {
unfold = true,
},
[UnitDefNames.chickenf.id] = {
unfold = true,
wait = 190,
},
[UnitDefNames.chicken_pigeon.id] = {
border = 0.11,
},
[UnitDefNames.chicken_dodo.id] = {
border = defaults.border,
},
[UnitDefNames.chickenbroodqueen.id] = {
rot = 29,
angle = 10,
unfold = false,
},
[UnitDefNames.striderdetriment.id] = {
rot = 20,
angle = 10,
},
[UnitDefNames.striderbantha.id] = {
rot = 28,
angle = 10,
unfold = true,
},
[UnitDefNames.striderdante.id] = {
rot = 28,
angle = 10,
},
[UnitDefNames.nebula.id] = {
rot = 28,
angle = 10,
},
[UnitDefNames.turretaaheavy.id] = {
rot = 30,
angle = 30,
},
[UnitDefNames.spiderassault.id] = {
unfold = true,
},
[UnitDefNames.amphlaunch.id] = {
unfold = true,
},
[UnitDefNames.spidercon.id] = {
scale = 3,
attempts = 10,
},
[UnitDefNames.commrecon1.id] = {
unfold = true,
--attack = true,
},
[UnitDefNames.commsupport1.id] = {
unfold = true,
--attack = true,
},
[UnitDefNames.zenith.id] = {
wait = 50,
},
[UnitDefNames.fakeunit.id] = {
empty = true,
},
[UnitDefNames.fakeunit_aatarget.id] = {
empty = true,
},
[UnitDefNames.fakeunit_los.id] = {
empty = true,
},
[UnitDefNames.wolverine_mine.id] = {
unfold = true,
wait = 60,
},
[UnitDefNames.hovercon.id] = {
unfold = true,
wait = 60,
},
}
for i=1,#UnitDefs do
if (UnitDefs[i].canFly) then
if (unitConfigs[i]) then
if (unitConfigs[i].unfold ~= false) then
unitConfigs[i].unfold = true
unitConfigs[i].move = true
end
else
unitConfigs[i] = {unfold = true, move = true}
end
elseif (UnitDefs[i].canKamikaze) then
if (unitConfigs[i]) then
if (not unitConfigs[i].border) then
unitConfigs[i].border = 0.156
end
else
unitConfigs[i] = {border = 0.156}
end
end
end
| gpl-2.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/installation/battlefield/destructible/imperial_gate_house.lua | 3 | 2316 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_installation_battlefield_destructible_imperial_gate_house = object_installation_battlefield_destructible_shared_imperial_gate_house:new {
}
ObjectTemplates:addTemplate(object_installation_battlefield_destructible_imperial_gate_house, "object/installation/battlefield/destructible/imperial_gate_house.iff")
| agpl-3.0 |
njamster/awesome-atop | modules/systray.lua | 1 | 1087 | local base = require("awesome-atop.base")
local position = require("awesome-atop.position")
local beautiful = require("beautiful")
systray = { mt = {} }
local function new(screen)
beautiful.bg_systray = "#28DF84"
local container = base({
screen = screen,
width = 40,
height = 40,
border_width = 3,
border_color = "#000000",
},
{
x = function(self) return position.left(self, 40) end,
y = function(self) return position.top(self, 45-self.height/2) end
})
container.widget = wibox.widget.systray(true)
awesome.connect_signal("systray::update", function()
local icon_size = container.height
local number_of_elements = awesome.systray()
local spacing = beautiful.systray_icon_spacing or 0
container.width = math.max(number_of_elements * icon_size - spacing, icon_size)
end)
return container
end
function systray.mt.__call(_, ...)
return new(...)
end
return setmetatable(systray, systray.mt)
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4
| gpl-2.0 |
dkpsystem/DKPProfiler | DKPProfiler.lua | 2 | 26377 | DKPProfiler = {};
DKPProfilerCharInfo = {};
DKPProfilerGuildBank = {};
DKPProfilerBankTabTime = {};
DKPProfilerAchCat = {};
BankOpenedOnce = false;
local DKPPVersion = "0.707 (2015-08-05)";
function DKPProfiler_OnLoad(this)
--his:RegisterEvent("CHAT_MSG_WHISPER");
--this:RegisterEvent("PLAYER_ENTERING_WORLD");
SlashCmdList["DKPProfiler"] = DKPProfiler_SlashHandler;
SLASH_DKPProfiler1 = "/dkpp";
SLASH_DKPProfiler2 = "/gbk";
this:RegisterEvent("SPELLS_CHANGED");
this:RegisterEvent("BANKFRAME_OPENED");
this:RegisterEvent("GUILDBANKFRAME_OPENED");
this:RegisterEvent("GUILDBANK_UPDATE_TABS");
this:RegisterEvent("GUILDBANKBAGSLOTS_CHANGED");
this:RegisterEvent("PLAYERBANKSLOTS_CHANGED");
this:RegisterEvent("BAG_UPDATE");
this:RegisterEvent("TRADE_SKILL_SHOW");
this:RegisterEvent("CRAFT_SHOW");
this:RegisterEvent("CRAFT_UPDATE");
this:RegisterEvent("TRADE_SKILL_UPDATE");
this:RegisterEvent("CHARACTER_POINTS_CHANGED");
this:RegisterEvent("CONFIRM_TALENT_WIPE");
this:RegisterEvent("CHAT_MSG_SKILL");
this:RegisterEvent("PLAYER_ENTERING_WORLD");
this:RegisterEvent("CHAT_MSG_MONEY");
this:RegisterEvent("UPDATE_FACTION");
this:RegisterEvent("QUEST_WATCH_UPDATE");
this:RegisterEvent("QUEST_FINISHED");
this:RegisterEvent("QUEST_COMPLETE");
this:RegisterEvent("QUEST_PROGRESS");
this:RegisterEvent("ARENA_TEAM_UPDATE");
this:RegisterEvent("ACHIEVEMENT_EARNED");
this:RegisterEvent("ARCHAEOLOGY_TOGGLE");
this:RegisterEvent("ARENA_TEAM_ROSTER_UPDATE");
DEFAULT_CHAT_FRAME:AddMessage("DKP Profiler (from DKPSystem.com) Version "..DKPPVersion.." loaded. ");
DEFAULT_CHAT_FRAME:AddMessage("DKP Profiler will attempt to profile your character while you play, but typing |c00ffff00/dkpp|r will manually initiate a snapshot of the data available to the DKPProfiler mod");
end
function DKPPinitialize()
if(DKPProfilerCharInfo == nil) then
DKPProfilerCharInfo = {};
end
if DKPProfiler == nil then
DKPProfiler = {};
end
end
function DKPProfiler_OnEvent(self,event,...)
local arg1 = ...;
--GRSSPrint("Event: "..event);
if (event == "BANKFRAME_OPENED") then
BankOpenedOnce = true;
elseif (event == "GUILDBANKFRAME_OPENED") then
DKPPRefreshAllBankTabs();
DKPPAverageItemLevel();
elseif (event == "GUILDBANK_UPDATE_TABS" or event=="GUILDBANKBAGSLOTS_CHANGED") then
DKPPStoreGuildBankItems();
elseif (event == "TRADE_SKILL_SHOW" or event == "TRADE_SKILL_UPDATE") then
DKPPGetCurrentTradeSkill();
DKPPGetTalents();
DKPPGetQuests();
elseif (event == "ACHIEVEMENT_EARNED") then
DKPPGetAchievements();
DKPPGetGold();
elseif (event == "CHAT_MSG_SKILL") then
DKPPGetTalents();
elseif (event == "SPELLS_CHANGED") then
DKPPInitializeTradeSkills();
elseif (event == "ADDON_LOADED") then
DKPPinitialize();
DKPPGetPvP();
DKPPGetTalents();
DKPPGetGold();
DKPPStorePlayerItems();
DKPPInitializeTradeSkills();
elseif (event == "QUEST_WATCH_UPDATE" or event=="QUEST_FINISHED" or event=="QUEST_COMPLETE" or event=="QUEST_PROGRESS") then
DKPPGetQuests();
elseif (event == "CHARACTER_POINTS_CHANGED" or event=="CONFIRM_TALENT_WIPE" or event=="PLAYER_ENTERING_WORLD") then
DKPPGetTalents();
elseif (event == "UPDATE_FACTION") then
DKPPGetReputations();
elseif (event == "CHAT_MSG_MONEY") then
DKPPGetGold();
elseif (event == "ARENA_TEAM_UPDATE" or event=="ARENA_TEAM_ROSTER_UPDATE") then
DKPPGetPvP();
elseif (event == "ARCHAEOLOGY_TOGGLE") then
DKPPGetArchaeology();
end
if (event=="GUILDBANKFRAME_OPENED" or (BankOpenedOnce==true and (event == "BANKFRAME_OPENED" or (event == "PLAYERBANKSLOTS_CHANGED" and arg1 == nil) or (event == "BAG_UPDATE" and arg1 >= 6 and arg1 <= 10)))) then
DKPPGetTalents();
DKPPGetPvP();
DKPPGetQuests();
DKPPPurgeResistance();
if(event == "BANKFRAME_OPENED") then
DKPPStorePlayerItems();
DKPPStoreBankItems();
elseif(event == "GUILDBANKFRAME_OPENED") then
DKPPStoreGuildBankGold();
end
DKPPGetGold();
end
end
function DKPPRefreshAllBankTabs()
local i;
for i = 1,GetNumGuildBankTabs() do
QueryGuildBankTab(i);
end
end
function DKPPPurgeResistance()
local player = UnitName("player");
if(DKPProfilerCharInfo[player] == nil) then
DKPProfilerCharInfo[player] = {};
end
DKPProfilerCharInfo[player].resistances = {};
end
function DKPProfiler_SlashHandler(msg)
DEFAULT_CHAT_FRAME:AddMessage("DKP Profiler Version "..DKPPVersion);
DKPPGetTalents();
DKPPGetPvP();
DKPPGetQuests();
DKPPPurgeResistance();
DKPPStorePlayerItems();
DKPPGetGold();
DKPPGetAchievements();
DKPPInitializeTradeSkills();
end
function DKPPGetAchievements()
local player = UnitName("player");
if(DKPProfilerCharInfo[player] == nil) then
DKPPRofilerCharInfo[player] = {};
end
DKPProfilerCharInfo[player].achievements = {};
local cats = GetCategoryList();
local cat,ach,achs;
local achi = 1;
local achpoints,comp,desc;
local catrec = {};
DKPProfilerAchCat = {};
for i,catid in pairs(cats) do
cat,parentcatid = GetCategoryInfo(catid);
DKPProfilerAchCat[catid] = {
["category"] = cat,
["parentcatid"] = parentcatid
};
--DKPPPrint("ach cat"..catid);
local numach = GetCategoryNumAchievements(catid);
--DKPPPrint("ok");
for ii = 1,numach do
local numdone = 0;
achid,ach,achpoints,comp,M,D,Y,desc = GetAchievementInfo(catid,ii);
catrec = {};
catrec.catid = catid;
catrec.ach = ach;
catrec.description = desc;
catrec.completed = comp;
catrec.crit = {};
catrec.points = achpoints;
local numcrit = GetAchievementNumCriteria(achid);
for iii = 1,numcrit do
local crit,_,critcomp = GetAchievementCriteriaInfo(achid,iii);
if critcomp == false then
catrec.crit[iii] = crit;
else
numdone = numdone + 1;
catrec.crit[iii] = "<strike>"..crit.."</strike>";
end
end
if numcrit == 0 then
catrec.progress = nil;
else
catrec.progress = numdone.."/"..numcrit;
end
if comp == true then
catrec.date = M.."/"..D.."/"..(Y+2000);
end
if comp or numdone>0 then
DKPProfilerCharInfo[player].achievements[achi] = catrec;
achi = achi + 1;
end
end
end
end
function DKPPGetReputations()
local faction,repstr, lvl, i, standingid,header,top,bot,mylvl,mymax,cat,counter;
local player = UnitName("player");
counter = 0;
DKPPinitialize();
if(DKPProfilerCharInfo[player] == nil) then
DKPProfilerCharInfo[player] = {};
end
if GetNumFactions() > 0 then
DKPProfilerCharInfo[player].factions = {};
for i = 1,GetNumFactions() do
faction,_,standingid,bot,top,lvl,_,_,header = GetFactionInfo(i);
if header == nil and faction~=nil then
mylvl = lvl-bot;
mymax = top-bot;
DKPProfilerCharInfo[player].factions[counter] = {};
DKPProfilerCharInfo[player].factions[counter].category = cat;
DKPProfilerCharInfo[player].factions[counter].faction = faction;
DKPProfilerCharInfo[player].factions[counter].standinglabel=getglobal("FACTION_STANDING_LABEL"..standingid);
DKPProfilerCharInfo[player].factions[counter].standingid=standingid;
DKPProfilerCharInfo[player].factions[counter].level=mylvl;
DKPProfilerCharInfo[player].factions[counter].maxlvl=mymax;
counter = counter + 1;
else
cat = faction;
end
end
end
end
function DKPPGetQuests()
local player = UnitName("player");
counter = 0;
DKPPinitialize();
if(DKPProfilerCharInfo[player] == nil) then
DKPProfilerCharInfo[player] = {};
end
DKPProfilerCharInfo[player].quests = {};
local i=1;
local headername = "";
local questTitle = "";
while (questTitle ~= nil and i < 80) do
questTitle, level, tag, suggestedGroup, header, collapsed, completed = GetQuestLogTitle(i);
if (not header) then
DKPProfilerCharInfo[player].quests[counter] = {};
DKPProfilerCharInfo[player].quests[counter].title = questTitle;
DKPProfilerCharInfo[player].quests[counter].tag = tag;
DKPProfilerCharInfo[player].quests[counter].header = headername;
DKPProfilerCharInfo[player].quests[counter].completed = completed;
DKPProfilerCharInfo[player].quests[counter].objectives = {};
--local numobj = GetNumQuestLogLeaderBoards(i); --number of objectives
local o = 1;
local desc,done;
desc = "dgdsgdfgdghfdhfdghf";
while desc~=nil and desc~="" and o<10 do
desc,_,done = GetQuestLogLeaderBoard(o,i);
if(desc) then
DKPProfilerCharInfo[player].quests[counter].objectives[o] = {};
DKPProfilerCharInfo[player].quests[counter].objectives[o].text = desc;
DKPProfilerCharInfo[player].quests[counter].objectives[o].done = done;
end
o = o + 1;
end
counter = counter + 1
else
headername = questTitle;
end
i = i + 1;
end
end
function DKPPAverageItemLevel()
local player = UnitName("player")
local total,count,k=0,0
for i=1,18 do
k=GetInventoryItemLink(player,i)
if i~=4 and k then
total=total+select(4,GetItemInfo(k))
count=count+1
end
end
if count > 0 then
local AvgItemLevel = total/count;
if DKPProfilerCharInfo[player] ~= nil then
DKPProfilerCharInfo[player].avgitemlevel = AvgItemLevel;
DKPPStoreMetricHistory("avgitemlevel",AvgItemLevel);
end
end
end
function DKPPGetGold()
local c = GetMoney();
local g,s,level,race,class,apoints;
g = math.floor(c/10000);
c = c - (g*10000);
s = math.floor(c/100);
c = c - (s*100);
local player = UnitName("player");
if(DKPProfilerCharInfo[player] == nil) then
DKPProfilerCharInfo[player] = {};
end
local moneystring = g.." Gold, "..s.." Silver,"..c.." Copper";
DKPProfilerCharInfo[player].money = moneystring;
DKPPStoreMetricHistory("money",math.floor(GetMoney()/10000));
level = UnitLevel("player");
race = UnitRace("player");
class = UnitClass("player");
apoints = GetTotalAchievementPoints();
DKPProfilerCharInfo[player].achpoints = apoints;
DKPPStoreMetricHistory("achpoints",apoints);
DKPPAverageItemLevel();
if level~=nil then
DKPProfilerCharInfo[player].level = level;
DKPPStoreMetricHistory("level",level);
end
if race~=nil then
DKPProfilerCharInfo[player].race = race
end
if class~=nil then
DKPProfilerCharInfo[player].class = class;
end
DKPProfilerCharInfo[player].realm = GetRealmName();
end
function DKPPGetTalents()
local player = UnitName("player");
if(DKPProfilerCharInfo[player] == nil) then
DKPProfilerCharInfo[player] = {};
end
DKPProfilerCharInfo[player].talents = {};
Groups = GetNumSpecGroups();
for i = 1, Groups do
DKPProfilerCharInfo[player].talents[i] = DKPPGetTalents_Specific(i);
end
end
function DKPPGetWebsiteClassKey()
local class = UnitClass("player");
local ClassKeys = {
["Death Knight"] = "d",
["Druid"] = "U",
["Hunter"] = "Y",
["Mage"] = "e",
["Monk"] = "f",
["Paladin"] = "b",
["Priest"] = "X",
["Rogue"] = "c",
["Shaman"] = "W",
["Warlock"] = "V",
["Warrior"] = "Z"
};
return ClassKeys[class];
end
function DKPPGetTalents_Specific(GroupNum)
local tab,tabname,talentname,column,selected, i;
local talentstring = DKPPGetWebsiteClassKey() .. "!";
local tt = {};
if GetTalentInfo(1,nil,GroupNum)~=nil then
tt.Talents = {};
for i = 1, GetNumTalents(GroupNum) do
talentname,_,tier,column,selected = GetTalentInfo(i,nil,GroupNum);
if selected then
tt.Talents[tier] = {};
tt.Talents[tier].name = talentname;
talentstring = talentstring .. (column-1);
end
end
end
local currentSpec = GetSpecialization(nil,nil,GroupNum);
local currentSpecName = currentSpec and select(2, GetSpecializationInfo(currentSpec)) or "None";
tt.Specialization = currentSpecName;
tt.Glyphs = DKPPGetTalents_Glyphs(GroupNum);
tt.talentstring = talentstring;
return tt;
end
function DKPPGetTalents_Glyphs(GroupNum)
local glyphs = {};
local max = GetNumGlyphSockets();
for i = 1,max do
enabled = GetGlyphSocketInfo(i,GroupNum);
if enabled then
local link = GetGlyphLink(i,GroupNum);
if link ~= "" then
local item = DKPPNameFromLink(link,true)
--GRSSPrint(item);
glyphs[i] = item;
end
end
end
return glyphs;
end
function DKPPInitializeTradeSkills()
local player = UnitName("player");
local profs = {GetProfessions()};
if DKPProfilerCharInfo[player].professions == nil then
DKPProfilerCharInfo[player].professions = {};
end
local usedprofs = {};
for i,profindex in pairs(profs) do
if profindex ~= nil then
--DKPPPrint("Prof:"..profindex);
local profname,_,level = GetProfessionInfo(profindex);
usedprofs[profname] = profname;
if DKPProfilerCharInfo[player].professions[profname]==nil then
DKPProfilerCharInfo[player].professions[profname] = {};
end
DKPProfilerCharInfo[player].professions[profname].lvl = level;
--DKPPPrint("Prof:"..profindex..":"..profname..":"..level);
DKPPStoreMetricHistory("Profession: "..profname,level);
end
end
for profname,profinfo in pairs(DKPProfilerCharInfo[player].professions) do
if usedprofs[profname] == nil then
DKPProfilerCharInfo[player].professions[profname] = nil
end
end
end
function DKPPGetArchaeology()
local player = UnitName("player");
local profname = "Archaeology";
if DKPProfilerCharInfo[player].professions[profname]==nil then
DKPProfilerCharInfo[player].professions[profname] = {};
end
if DKPProfilerCharInfo[player].professions[profname].skills==nil then
DKPProfilerCharInfo[player].professions[profname].skills = {};
end
local rarities = {};
local races = GetNumArchaeologyRaces();
for r=1,races do
local arts = GetNumArtifactsByRace(r);
for a = 2,arts do
local item,_,rarity = GetArtifactInfoByRace(r,a);
DKPProfilerCharInfo[player].professions[profname].skills[item] = item;
end
end
end
function DKPPGetCurrentTradeSkill()
DKPPInitializeTradeSkills();
local profname, lvl, max = GetTradeSkillLine();
local linked,linkedplayer = IsTradeSkillLinked();
if linked then
--do nothing
--TODO: Add tracking for guildies?
else
local player = UnitName("player");
if profname ~= nil and profname ~= "UNKNOWN" then
if DKPProfilerCharInfo[player].professions == nil then
DKPProfilerCharInfo[player].professions = {};
end
if DKPProfilerCharInfo[player].professions[profname]==nil then
DKPProfilerCharInfo[player].professions[profname] = {};
end
if DKPProfilerCharInfo[player].professions[profname].skills == nil then
DKPProfilerCharInfo[player].professions[profname].skills = {};
end
DKPProfilerCharInfo[player].professions[profname].level = lvl;
DKPPStoreMetricHistory("Profession: "..profname,lvl);
local i, name, type;
for i = 1,GetNumTradeSkills() do
name, type, _, _ = GetTradeSkillInfo(i);
if(type ~= "header")then
DKPProfilerCharInfo[player].professions[profname].skills[name]=name;
end
end
end
end
end
function DKPPGetPvP()
local player = UnitName("player");
local realm = GetRealmName();
if(DKPProfilerCharInfo[player] == nil) then
DKPProfilerCharInfo[player] = {};
end
if(DKPProfilerCharInfo[player].pvp == nil) then
DKPProfilerCharInfo[player].pvp = {};
end
DKPProfilerCharInfo[player].pvp.arena = {};
--[[
--Arena teams currently disabled.
local team,size,rating,played,wins;
for i = 1,3 do
team,size,rating,_,_,wins,played = GetArenaTeam(i);
if size ~= nil and size>0 then
num = GetNumArenaTeamMembers(i);
local players = {};
for mi = 1,num do
pname,_,plevel,pclass,_,_,_,pplayed,pwins,prating = GetArenaTeamRosterInfo(i,mi);
players[mi] = {
["name"]=pname,
["class"]=pclass,
["won"]=pwins,
["played"]=pplayed,
["rating"]=prating,
};
end
DKPProfilerCharInfo[player].pvp.arena[i] = {
["teamname"] = team,
["size"] = size,
["rating"] = rating,
["players"] = players,
["wins"] = wins,
["played"] = played
};
DKPPStoreMetricHistory(size.."v"..size..": "..team,rating);
end
end
--]]
local hk,dk,rank,rankid;
hk, dk = GetPVPLifetimeStats();
rankid = GetCurrentTitle();
if rank ~= nil then
rank = GetTitleName(rankid);
else
rank = nil;
end
DKPProfilerCharInfo[player].pvp.rankid = rankid;
DKPProfilerCharInfo[player].pvp.rank = rank;
DKPProfilerCharInfo[player].pvp.LifetimeHKs = hk;
DKPProfilerCharInfo[player].pvp.LifetimeDKs = dk;
_,ValorPoints = GetCurrencyInfo(396);
_,HonorPoints = GetCurrencyInfo(392);
_,ConquestPoints = GetCurrencyInfo(390)
_,JusticePoints = GetCurrencyInfo(395);
_,DKPProfilerCharInfo[player].pvp.ValorPoints = ValorPoints;
_,DKPProfilerCharInfo[player].pvp.HonorPoints = HonorPoints;
_,DKPProfilerCharInfo[player].pvp.ConquestPoints = ConquestPoints;
_,DKPProfilerCharInfo[player].pvp.JusticePoints = JusticePoints;
DKPPStoreMetricHistory("Valor Points",ValorPoints);
DKPPStoreMetricHistory("Honor Points",HonorPoints);
DKPPStoreMetricHistory("Conquest Points",ConquestPoints);
DKPPStoreMetricHistory("Justice Points",JusticePoints);
local Realm, Players
-- Old GearScore (3.0)
if GS_Data ~= nil and GS_Data[realm] ~= nil and GS_Data[realm].Players ~= nil then
Players = GS_Data[realm].Players
if Players[player] ~= nil and Players[player].GearScore ~= nil then
local gs = GearScore;
DKPProfilerCharInfo[player].gearscore = Players[player].GearScore;
DKPPStoreMetricHistory("gearscore",GearScore);
end
end
--New GearScore (4.0)
if TenTonHammer_Database ~= nil and TenTonHammer_Database[realm]~=nil and TenTonHammer_Database[realm][player]~=nil then
GSString = TenTonHammer_Database[realm][player];
local a = {};
for v in string.gmatch(GSString, "[^:]+") do tinsert(a, v); end
local GearScore, RaidScore, PVEScore, PVPScore = a[2], a[3], a[4], a[5];
DKPProfilerCharInfo[player].gearscore = GearScore;
DKPPStoreMetricHistory("gearscore",GearScore);
end
end
function PurgeNecessarySkills()
local player = UnitName("player");
local skill,v;
for skill in pairs(DKPProfilerCharInfo[player].professions) do
--DKPPPrint("Attempting to Purge: "..skill);
if (IsMySkill(skill)==0) then
--DKPPPrint("purging "..skill);
DKPProfilerCharInfo[player].professions[skill] = nil;
end
end
end
function DKPPPrint(msg)
DEFAULT_CHAT_FRAME:AddMessage("DKPP: "..msg);
end
function DKPPPrintAll()
--DKPPPrint("Printing it");
local i, v;
local player = UnitName("player");
for i, v in ipairs(DKPProfiler[player]["Bank"]) do DKPPPrint("Bank: " .. i .. " x " .. v) end
for i, v in ipairs(DKPProfiler[player]["Bags"]) do DKPPPrint("Bags: " .. i .. " x " .. v) end
end
function DKPPNameFromLink(link,ItemNameOnly)
local quality;
local s,e=string.find(link,"%[.*]");
local itemname = string.sub(link,s+1,e-1);
if ItemNameOnly then
return itemname;
else
s,e = string.find(link,"item:%d+:%d+:%d+:%d+");
local itemid = string.sub(link,s,e);
local _,_,quality,_,itype,isubtype = GetItemInfo(itemid);
if(quality == nil) then
quality = 1;
end
return quality..":::"..itemname;
end
end
--StoredPlace can be: "Bank","Bags","Player" for Bank, Player's Bags, and Currently Equipped
function DKPPStoreBag(BagNum,StoredPlace)
local items,name,itemtype,itemsubtype,equiploc,ttlevel;
local player = UnitName("player");
local i;
local qty,quality,itemstring;
local s,e;
--DKPPPrint("Bag: "..BagNum);
items = GetContainerNumSlots(BagNum);
if (items) then
for i = 1, items do
link = GetContainerItemLink(BagNum, i);
_, qty = GetContainerItemInfo(BagNum, i);
if( link ) then
--DKPPPrint("Doing Item: "..link);
--name,quality = DKPPNameFromLink(link);
name,_,quality,_,level,itemtype,itemsubtype,_,equiploc = GetItemInfo(link);
class,ttlevel = DKPPGetClassAndLevelOfItem(BagNum,i);
local totalitem = name;
if class~=nil and string.len(class)>0 then
totalitem=totalitem..";;"..class;
end
if ttlevel~=nil and string.len(ttlevel)>0 then
totalitem=totalitem..";;"..ttlevel;
end
if (DKPProfiler[player][StoredPlace][totalitem]==nil or type(DKPProfiler[player][StoredPlace][totalitem])~="table") then
DKPProfiler[player][StoredPlace][totalitem]={};
if(qty==0) then
qty=1;
end
DKPProfiler[player][StoredPlace][totalitem].qty=qty;
DKPProfiler[player][StoredPlace][totalitem].quality=quality;
if(level>0) then
DKPProfiler[player][StoredPlace][totalitem].level=level;
end
DKPProfiler[player][StoredPlace][totalitem].itemtype=itemtype;
DKPProfiler[player][StoredPlace][totalitem].itemsubtype=itemsubtype;
DKPProfiler[player][StoredPlace][totalitem].equiploc=getglobal(equiploc);
DKPProfiler[player][StoredPlace][totalitem].itemclasses=class;
else
DKPProfiler[player][StoredPlace][totalitem].qty=DKPProfiler[player][StoredPlace][totalitem].qty+qty;
end
end
end
end
end
function DKPPStorePlayer()
local StoredPlace="Player";
local player=UnitName("player");
local classlvl,ttlevel;
local i, link, name, s, e
for i = 0,19 do
link = GetInventoryItemLink("player", i);
if (link) then
--name = DKPPNameFromLink(link);
name,_,quality,_,level,itemtype,itemsubtype,_,equiploc = GetItemInfo(link);
class,ttlevel = DKPPGetClassAndLevelOfItem("player",i);
local totalitem = name;
if class ~= nil and string.len(class)>0 then
totalitem=totalitem..";;"..class
end
if ttlevel ~= nil and string.len(ttlevel)>0 then
totalitem=totalitem..";;"..ttlevel;
end
DKPProfiler[player][StoredPlace][totalitem]={};
DKPProfiler[player][StoredPlace][totalitem].qty=qty;
DKPProfiler[player][StoredPlace][totalitem].quality=quality;
if(level>0) then
DKPProfiler[player][StoredPlace][totalitem].level=level;
end
DKPProfiler[player][StoredPlace][totalitem].itemtype=itemtype;
DKPProfiler[player][StoredPlace][totalitem].itemsubtype=itemsubtype;
DKPProfiler[player][StoredPlace][totalitem].itemclasses=class;
DKPProfiler[player][StoredPlace][totalitem].equiploc=getglobal(equiploc);
end
end
end
function DKPPStoreBankItems()
local StoredPlace="Bank";
local player = UnitName("player");
local i;
DKPProfiler[player][StoredPlace]={};
DKPPStoreBag(BANK_CONTAINER,StoredPlace);
for i = 5,10 do
DKPPStoreBag(i,StoredPlace);
end
end
function DKPPStorePlayerItems()
local i;
local player=UnitName("player");
local StoredPlace="Bags";
DKPPinitialize();
if(DKPProfiler[player]==nil) then
DKPProfiler[player]={};
end
DKPProfiler[player]["Player"]={};
DKPPStorePlayer();
DKPProfiler[player]["Bags"]={};
for i = 0,4 do
DKPPStoreBag(i,StoredPlace);
end
DKPPStoreBag(-2,StoredPlace);
end
function B(t)
if( t == nil) then
return "[Blank]";
else
return t;
end
end
function DKPPStoreGuildBankItems()
local name;
local qty;
local tabs;
local i,j,items;
tabs = GetNumGuildBankTabs();
local CurTime = GetTime();
for i = 1,tabs do
if DKPProfilerBankTabTime[i] == nil or CurTime > DKPProfilerBankTabTime[i] + 0.5 then
--DKPPPrint("Loading Tab: "..i);
DKPProfilerGuildBank[i] = {};
name = GetGuildBankTabInfo(i);
DKPProfilerGuildBank[i].name = name;
DKPProfilerGuildBank[i].items = {};
TotalItems = 0
for j = 1,98 do
_,qty = GetGuildBankItemInfo(i,j);
item = GetGuildBankItemLink(i,j);
if(item~=nil) then
TotalItems = TotalItems + 1;
name,_,quality,_,level,itemtype,itemsubtype,_,equiploc = GetItemInfo(item);
class,ttlevel = DKPPGetClassAndLevelOfBankItem(i,j);
local totalitem = name;
if class ~= nil and string.len(class)>0 then
totalitem=totalitem..";;"..class
end
if ttlevel ~= nil and string.len(ttlevel)>0 then
totalitem=totalitem..";;"..ttlevel;
end
if (DKPProfilerGuildBank[i].items[totalitem]==nil or type(DKPProfilerGuildBank[i].items[totalitem])~="table") then
DKPProfilerGuildBank[i].items[totalitem]={};
DKPProfilerGuildBank[i].items[totalitem].qty=qty;
DKPProfilerGuildBank[i].items[totalitem].quality=quality;
if(level>0) then
DKPProfilerGuildBank[i].items[totalitem].level=level;
end
DKPProfilerGuildBank[i].items[totalitem].itemtype=itemtype;
DKPProfilerGuildBank[i].items[totalitem].itemsubtype=itemsubtype;
DKPProfilerGuildBank[i].items[totalitem].itemclasses=class;
DKPProfilerGuildBank[i].items[totalitem].equiploc=getglobal(equiploc);
else
DKPProfilerGuildBank[i].items[totalitem].qty=DKPProfilerGuildBank[i].items[totalitem].qty+qty;
end
end
end
if TotalItems > 0 then
DKPProfilerBankTabTime[i] = CurTime;
end
else
--DKPPPrint("Tab "..i.." Loaded Recently: skipping");
end
end
end
function DKPPStoreGuildBankGold()
end
function DKPPNumNilZero(v)
v = tonumber(v);
if v == nil then
v = 0
end
return v;
end
function DKPPGetClassAndLevelOfBankItem(tab,slot)
local class,level=nil,nil;
DKPPKTooltip:ClearLines();
DKPPKTooltip:SetGuildBankItem(tab,slot);
local textadd="";
--DKPPPrint(DKPPKTooltip:NumLines());
for i = 1,30 do
local left = getglobal("DKPPKTooltipTextLeft"..i);
local text;
if left ~= nil then
text = left:GetText();
if text~=nil then
_,_,c = string.find(text,"Classes:%s*(.+)%s*");
if c~=nil then
class = c;
else
_,_,l = string.find(text,"(Level%s%d*)");
if l~=nil then
level = l;
end
end
end
end
end
return class,level;
end
function DKPPGetClassAndLevelOfItem(bag,slot)
local class,level=nil,nil;
DKPPKTooltip:ClearLines();
if(bag=="player") then
DKPPKTooltip:SetInventoryItem("player",slot);
else
DKPPKTooltip:SetBagItem(bag,slot);
end
local textadd="";
--DKPPPrint(DKPPKTooltip:NumLines());
for i = 1,30 do
local left = getglobal("DKPPKTooltipTextLeft"..i);
local text;
if left ~= nil then
text = left:GetText();
if text~=nil then
_,_,c = string.find(text,"Classes:%s*(.+)%s*");
if c~=nil then
class = c;
else
_,_,l = string.find(text,"(Level%s%d*)");
if l~=nil then
level = l;
end
end
end
end
end
return class,level;
end
function DKPPStoreMetricHistory(Metric,Value)
local player=UnitName("player");
--DKPPPrint("player: "..player);
if DKPProfilerCharInfo[player]==nil then
DKPProfilerCharInfo[player]={};
end
if DKPProfilerCharInfo[player].history == nil then
DKPProfilerCharInfo[player].history = {};
end
if DKPProfilerCharInfo[player].history[Metric] == nil then
DKPProfilerCharInfo[player].history[Metric] = {};
end
Date = date("%Y-%m-%d");
--DKPPPrint("Storing Metric '" .. Metric .. "' (" .. Date .."): ");
DKPProfilerCharInfo[player].history[Metric][Date] = Value;
end
| mit |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/lok/marooned_pirate_captain.lua | 1 | 1442 | marooned_pirate_captain = Creature:new {
objectName = "@mob/creature_names:marooned_pirate_captain",
randomNameType = NAME_GENERIC,
randomNameTag = true,
socialGroup = "pirate",
faction = "pirate",
level = 24,
chanceHit = 0.35,
damageMin = 210,
damageMax = 220,
baseXp = 2543,
baseHAM = 5900,
baseHAMmax = 7200,
armor = 0,
resists = {20,20,10,40,-1,40,10,-1,-1},
meatType = "",
meatAmount = 0,
hideType = "",
hideAmount = 0,
boneType = "",
boneAmount = 0,
milk = 0,
tamingChance = 0,
ferocity = 0,
pvpBitmask = AGGRESSIVE + ATTACKABLE + ENEMY,
creatureBitmask = PACK + KILLER,
optionsBitmask = AIENABLED,
diet = HERBIVORE,
templates = {
"object/mobile/dressed_marooned_pirate_captain_hum_m.iff",
"object/mobile/dressed_marooned_pirate_captain_nikto_m.iff",
"object/mobile/dressed_marooned_pirate_captain_tran_m.iff",
"object/mobile/dressed_marooned_pirate_captain_wee_m.iff"
},
lootGroups = {
{
groups = {
{group = "junk", chance = 3000000},
{group = "wearables_common", chance = 2000000},
{group = "loot_kit_parts", chance = 2000000},
{group = "tailor_components", chance = 1000000},
{group = "rifles", chance = 2000000}
}
}
},
weapons = {"pirate_weapons_heavy"},
conversationTemplate = "",
reactionStf = "@npc_reaction/slang",
attacks = merge(brawlermaster,marksmanmaster)
}
CreatureTemplates:addCreatureTemplate(marooned_pirate_captain, "marooned_pirate_captain")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/building/military/military_base_shed_imperial_style_01.lua | 3 | 2308 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_building_military_military_base_shed_imperial_style_01 = object_building_military_shared_military_base_shed_imperial_style_01:new {
}
ObjectTemplates:addTemplate(object_building_military_military_base_shed_imperial_style_01, "object/building/military/military_base_shed_imperial_style_01.iff")
| agpl-3.0 |
stephendade/ardupilot | libraries/AP_Scripting/applets/SmartAudio.lua | 24 | 3510 | --------------------------------------------------
--------------------------------------------------
--------- VTX LUA for SMARTAUDIO 2.0 -------------
------------based on work by----------------------
---------Craig Fitches 07/07/2020 ----------------
-------------Mods by H. Wurzburg -----------------
------------clean up by Peter Hall----------------
-----------------HARDWARE------------------
-- tested on CUAVv5Nano and TX8111 VTX
-- Prerequisites ----------------------------------
-- 1. Only works in Ardupilot 4.1dev or later
-- 2. FC with 2MB cache for LUA Scripting
-- 3. Currently only works with SmartAudio 2.0
------------ Instructions ------------------------
-- 1. Set an unused Serial port in Ardupilot to protocol 28 (scripting) and option 4 (half-duplex)
-- 2. Setup an rc channel's RXc_OPTION to 300 for changing power and SCR_USER1 parameter for initial power upon boot
---------and set to -1 for unchanged, 0 (PitMode),1,2,3, or 4 for power level (1 lowest,4 maximum)
-- 3. Attach the UART's TX for the Serial port chosen above to the VTX's SmartAudio input
-- init local variables
local startup_pwr = param:get('SCR_USER1')
local scripting_rc = rc:find_channel_for_option(300)
local port = serial:find_serial(0)
local _current_power = -1
-- hexadecimal smart audio 2.0 commands
local power_commands = {}
power_commands[1] = { {0x00,0x00,0xAA,0x55,0x0B,0x01,0x01,0xF8,0x00}, "VTX Pit Mode" }
power_commands[2] = { {0x00,0x00,0xAA,0x55,0x05,0x01,0x00,0x6B,0x00}, "VTX PWR LOW" } -- SMARTAUDIO_V2_COMMAND_POWER_0
power_commands[3] = { {0x00,0x00,0xAA,0x55,0x05,0x01,0x01,0xBE,0x00}, "VTX PWR MED" } -- SMARTAUDIO_V2_COMMAND_POWER_1
power_commands[4] = { {0x00,0x00,0xAA,0x55,0x05,0x01,0x02,0x14,0x00}, "VTX PWR HIGH" } -- SMARTAUDIO_V2_COMMAND_POWER_2
power_commands[5] = { {0x00,0x00,0xAA,0x55,0x05,0x01,0x03,0xC1,0x00}, "VTX PWR MAX" } -- SMARTAUDIO_V2_COMMAND_POWER_3
-- return a power level from 1 to 5 as set with a switch
function get_power()
input = scripting_rc:norm_input() -- - 1 to 1
input = (input + 1) * 2 -- 0 to 4
return math.floor(input+0.5) + 1 -- integer 1 to 5
end
-- set the power in the range 1 to 5
function setPower(power)
if power == _current_power then
return
end
updateSerial(power_commands[power][1])
gcs:send_text(4, power_commands[power][2])
_current_power = power
end
-- write output to the serial port
function updateSerial(value)
for count = 1, #value do
port:write(value[count])
end
end
---- main update ---
function update()
setPower(get_power())
return update, 500
end
-- initialization
function init()
-- check if setup properly
if not port then
gcs:send_text(0, "SmartAudio: No Scripting Serial Port")
return
end
if not scripting_rc then
gcs:send_text(0, "SmartAudio: No RC option for scripting")
return
end
port:begin(4800)
-- Set initial power after boot based on SCR_USER1
if startup_pwr then -- make sure we found the param
if startup_pwr >= 0 and startup_pwr < 5 then
setPower(math.floor(startup_pwr) + 1)
-- set the current power local to that requested by the rc in
-- this prevents instantly changing the power from the startup value
_current_power = get_power()
end
end
return update, 500
end
return init, 2000 --Wait 2 sec before initializing, gives time for RC in to come good in SITL, also gives a better chance to see errors
| gpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/space/weapon/missile/objects.lua | 3 | 67648 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
--which carries forward this exception.
object_draft_schematic_space_weapon_missile_shared_basic_chaff_launcher = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_basic_chaff_launcher.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 3598298958,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_basic_chaff_launcher, "object/draft_schematic/space/weapon/missile/shared_basic_chaff_launcher.iff")
object_draft_schematic_space_weapon_missile_shared_basic_chaff_pack = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_basic_chaff_pack.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 2098216050,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_basic_chaff_pack, "object/draft_schematic/space/weapon/missile/shared_basic_chaff_pack.iff")
object_draft_schematic_space_weapon_missile_shared_basic_launcher = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_basic_launcher.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 1802841048,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_basic_launcher, "object/draft_schematic/space/weapon/missile/shared_basic_launcher.iff")
object_draft_schematic_space_weapon_missile_shared_basic_missile_pack = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_basic_missile_pack.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 126586241,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_basic_missile_pack, "object/draft_schematic/space/weapon/missile/shared_basic_missile_pack.iff")
object_draft_schematic_space_weapon_missile_shared_countermeasure_chaff_launcher = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_countermeasure_chaff_launcher.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 1669199220,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_countermeasure_chaff_launcher, "object/draft_schematic/space/weapon/missile/shared_countermeasure_chaff_launcher.iff")
object_draft_schematic_space_weapon_missile_shared_countermeasure_chaff_pack = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_countermeasure_chaff_pack.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 967427990,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_countermeasure_chaff_pack, "object/draft_schematic/space/weapon/missile/shared_countermeasure_chaff_pack.iff")
object_draft_schematic_space_weapon_missile_shared_countermeasure_confuser_launcher = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_countermeasure_confuser_launcher.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 1010014254,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_countermeasure_confuser_launcher, "object/draft_schematic/space/weapon/missile/shared_countermeasure_confuser_launcher.iff")
object_draft_schematic_space_weapon_missile_shared_countermeasure_confuser_pack = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_countermeasure_confuser_pack.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 1096963488,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_countermeasure_confuser_pack, "object/draft_schematic/space/weapon/missile/shared_countermeasure_confuser_pack.iff")
object_draft_schematic_space_weapon_missile_shared_countermeasure_decoy_launcher = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_countermeasure_decoy_launcher.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 3889493337,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_countermeasure_decoy_launcher, "object/draft_schematic/space/weapon/missile/shared_countermeasure_decoy_launcher.iff")
object_draft_schematic_space_weapon_missile_shared_countermeasure_decoy_pack = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_countermeasure_decoy_pack.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 1710067156,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_countermeasure_decoy_pack, "object/draft_schematic/space/weapon/missile/shared_countermeasure_decoy_pack.iff")
object_draft_schematic_space_weapon_missile_shared_countermeasure_em_launcher = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_countermeasure_em_launcher.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 2736033559,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_countermeasure_em_launcher, "object/draft_schematic/space/weapon/missile/shared_countermeasure_em_launcher.iff")
object_draft_schematic_space_weapon_missile_shared_countermeasure_em_pack = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_countermeasure_em_pack.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 3044761439,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_countermeasure_em_pack, "object/draft_schematic/space/weapon/missile/shared_countermeasure_em_pack.iff")
object_draft_schematic_space_weapon_missile_shared_countermeasure_microchaff_launcher = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_countermeasure_microchaff_launcher.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 1406628129,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_countermeasure_microchaff_launcher, "object/draft_schematic/space/weapon/missile/shared_countermeasure_microchaff_launcher.iff")
object_draft_schematic_space_weapon_missile_shared_countermeasure_microchaff_pack = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_countermeasure_microchaff_pack.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 3491272814,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_countermeasure_microchaff_pack, "object/draft_schematic/space/weapon/missile/shared_countermeasure_microchaff_pack.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_concussion_missile_mk1 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_concussion_missile_mk1.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 4275827372,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_concussion_missile_mk1, "object/draft_schematic/space/weapon/missile/shared_wpn_concussion_missile_mk1.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_concussion_missile_mk2 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_concussion_missile_mk2.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 634149435,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_concussion_missile_mk2, "object/draft_schematic/space/weapon/missile/shared_wpn_concussion_missile_mk2.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_concussion_missile_mk3 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_concussion_missile_mk3.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 1824603574,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_concussion_missile_mk3, "object/draft_schematic/space/weapon/missile/shared_wpn_concussion_missile_mk3.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_imagerec_missile_mk1 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_imagerec_missile_mk1.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 2093977497,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_imagerec_missile_mk1, "object/draft_schematic/space/weapon/missile/shared_wpn_imagerec_missile_mk1.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_imagerec_missile_mk2 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_imagerec_missile_mk2.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 2815960846,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_imagerec_missile_mk2, "object/draft_schematic/space/weapon/missile/shared_wpn_imagerec_missile_mk2.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_launcher_concussion_mk1 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_concussion_mk1.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 1043274696,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_launcher_concussion_mk1, "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_concussion_mk1.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_launcher_concussion_mk2 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_concussion_mk2.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 3845698399,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_launcher_concussion_mk2, "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_concussion_mk2.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_launcher_concussion_mk3 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_concussion_mk3.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 2889209042,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_launcher_concussion_mk3, "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_concussion_mk3.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_launcher_imagerec_mk1 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_imagerec_mk1.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 650835732,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_launcher_imagerec_mk1, "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_imagerec_mk1.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_launcher_imagerec_mk2 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_imagerec_mk2.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 4259143555,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_launcher_imagerec_mk2, "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_imagerec_mk2.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_launcher_proton_mk1 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_proton_mk1.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 3316343727,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_launcher_proton_mk1, "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_proton_mk1.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_launcher_proton_mk2 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_proton_mk2.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 515689272,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_launcher_proton_mk2, "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_proton_mk2.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_launcher_proton_mk3 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_proton_mk3.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 1471261877,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_launcher_proton_mk3, "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_proton_mk3.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_launcher_proton_mk4 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_proton_mk4.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 2891089825,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_launcher_proton_mk4, "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_proton_mk4.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_launcher_seismic_mk1 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_seismic_mk1.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 3651288032,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_launcher_seismic_mk1, "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_seismic_mk1.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_launcher_seismic_mk2 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_seismic_mk2.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 45454199,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_launcher_seismic_mk2, "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_seismic_mk2.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_launcher_seismic_mk3 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_seismic_mk3.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 1270412538,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_launcher_seismic_mk3, "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_seismic_mk3.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_launcher_spacebomb_mk1 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_spacebomb_mk1.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 3784031794,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_launcher_spacebomb_mk1, "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_spacebomb_mk1.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_launcher_spacebomb_mk2 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_spacebomb_mk2.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 983307941,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_launcher_spacebomb_mk2, "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_spacebomb_mk2.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_proton_missile_mk1 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_proton_missile_mk1.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 681902817,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_proton_missile_mk1, "object/draft_schematic/space/weapon/missile/shared_wpn_proton_missile_mk1.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_proton_missile_mk2 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_proton_missile_mk2.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 4088572534,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_proton_missile_mk2, "object/draft_schematic/space/weapon/missile/shared_wpn_proton_missile_mk2.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_proton_missile_mk3 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_proton_missile_mk3.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 3133132283,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_proton_missile_mk3, "object/draft_schematic/space/weapon/missile/shared_wpn_proton_missile_mk3.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_proton_missile_mk4 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_proton_missile_mk4.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 1096607471,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_proton_missile_mk4, "object/draft_schematic/space/weapon/missile/shared_wpn_proton_missile_mk4.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_seismic_missile_mk1 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_seismic_missile_mk1.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 3507837660,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_seismic_missile_mk1, "object/draft_schematic/space/weapon/missile/shared_wpn_seismic_missile_mk1.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_seismic_missile_mk2 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_seismic_missile_mk2.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 167965259,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_seismic_missile_mk2, "object/draft_schematic/space/weapon/missile/shared_wpn_seismic_missile_mk2.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_seismic_missile_mk3 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_seismic_missile_mk3.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 1125094854,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_seismic_missile_mk3, "object/draft_schematic/space/weapon/missile/shared_wpn_seismic_missile_mk3.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_spacebomb_missile_mk1 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_spacebomb_missile_mk1.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 2352553481,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_spacebomb_missile_mk1, "object/draft_schematic/space/weapon/missile/shared_wpn_spacebomb_missile_mk1.iff")
object_draft_schematic_space_weapon_missile_shared_wpn_spacebomb_missile_mk2 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/weapon/missile/shared_wpn_spacebomb_missile_mk2.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff",
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 2049,
collisionActionBlockFlags = 0,
collisionActionFlags = 0,
collisionActionPassFlags = 0,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 0,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 0,
detailedDescription = "string_id_table",
gameObjectType = 2049,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "string_id_table",
onlyVisibleInTools = 0,
portalLayoutFilename = "",
scale = 0,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 0,
surfaceType = 0,
totalCellNumber = 0,
clientObjectCRC = 1462679198,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_weapon_missile_shared_wpn_spacebomb_missile_mk2, "object/draft_schematic/space/weapon/missile/shared_wpn_spacebomb_missile_mk2.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/lair/bantha/lair_bantha.lua | 1 | 2259 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_lair_bantha_lair_bantha = object_tangible_lair_bantha_shared_lair_bantha:new {
objectMenuComponent = "LairMenuComponent",
}
ObjectTemplates:addTemplate(object_tangible_lair_bantha_lair_bantha, "object/tangible/lair/bantha/lair_bantha.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/camp/camp_chair_s2.lua | 3 | 2196 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_camp_camp_chair_s2 = object_tangible_camp_shared_camp_chair_s2:new {
}
ObjectTemplates:addTemplate(object_tangible_camp_camp_chair_s2, "object/tangible/camp/camp_chair_s2.iff")
| agpl-3.0 |
SbssTeam/Quick-v2 | plugins/mod.lua | 1 | 10156 | do
local function check_member(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
local username = v.username
data[tostring(msg.to.id)] = {
moderators = {[tostring(member_id)] = username},
settings = {
set_name = string.gsub(msg.to.print_name, '_', ' '),
lock_name = 'no',
lock_photo = 'no',
lock_member = 'no'
}
}
save_data(_config.moderation.data, data)
return send_large_msg(receiver, 'You are moderator for group')
end
end
end
local function automodadd(msg)
local data = load_data(_config.moderation.data)
if msg.action.type == 'chat_created' then
receiver = get_receiver(msg)
chat_info(receiver, check_member,{receiver=receiver, data=data, msg = msg})
else
if data[tostring(msg.to.id)] then
return 'Group have already moderator list'
end
if msg.from.username then
username = msg.from.username
else
username = msg.from.print_name
end
-- create data array in moderation.json
data[tostring(msg.to.id)] = {
moderators ={[tostring(msg.from.id)] = username},
settings = {
set_name = string.gsub(msg.to.print_name, '_', ' '),
lock_name = 'no',
lock_photo = 'no',
lock_member = 'no'
}
}
save_data(_config.moderation.data, data)
return 'User @'..username..' set to moderator list'
end
end
local function modadd(msg)
-- superuser and admins only (because sudo are always has privilege)
if not is_admin(msg) then
return "You are NOT GLOBAL ADMIN"
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)] then
return 'Group have already moderator list'
end
-- create data array in moderation.json
data[tostring(msg.to.id)] = {
moderators ={},
settings = {
set_name = string.gsub(msg.to.print_name, '_', ' '),
lock_name = 'no',
lock_photo = 'no',
lock_member = 'no'
}
}
save_data(_config.moderation.data, data)
return 'Moderator list added'
end
local function modrem(msg)
-- superuser and admins only (because sudo are always has privilege)
if not is_admin(msg) then
return "You are NOT GLOBAL ADMIN"
end
local data = load_data(_config.moderation.data)
local receiver = get_receiver(msg)
if not data[tostring(msg.to.id)] then
return 'Group have not moderator list'
end
data[tostring(msg.to.id)] = nil
save_data(_config.moderation.data, data)
return 'Moderator list removed'
end
local function promote(receiver, member_username, member_id)
local data = load_data(_config.moderation.data)
local group = string.gsub(receiver, 'chat#id', '')
if not data[group] then
return send_large_msg(receiver, 'Moderator list added')
end
if data[group]['moderators'][tostring(member_id)] then
return send_large_msg(receiver, '@'..member_username..' is already moderator')
end
data[group]['moderators'][tostring(member_id)] = member_username
save_data(_config.moderation.data, data)
return send_large_msg(receiver, '@'..member_username..' set to moderator list')
end
local function demote(receiver, member_username, member_id)
local data = load_data(_config.moderation.data)
local group = string.gsub(receiver, 'chat#id', '')
if not data[group] then
return send_large_msg(receiver, 'Group have not moderator list')
end
if not data[group]['moderators'][tostring(member_id)] then
return send_large_msg(receiver, '@'..member_username..' is not moderator')
end
data[group]['moderators'][tostring(member_id)] = nil
save_data(_config.moderation.data, data)
return send_large_msg(receiver, '@'..member_username..' remove from moderator list')
end
local function admin_promote(receiver, member_username, member_id)
local data = load_data(_config.moderation.data)
if not data['admins'] then
data['admins'] = {}
save_data(_config.moderation.data, data)
end
if data['admins'][tostring(member_id)] then
return send_large_msg(receiver, '@'..member_username..' is already GLOBAL ADMIN')
end
data['admins'][tostring(member_id)] = member_username
save_data(_config.moderation.data, data)
return send_large_msg(receiver, '@'..member_username..' set to GLOBAL ADMIN list')
end
local function admin_demote(receiver, member_username, member_id)
local data = load_data(_config.moderation.data)
if not data['admins'] then
data['admins'] = {}
save_data(_config.moderation.data, data)
end
if not data['admins'][tostring(member_id)] then
return send_large_msg(receiver, '@'..member_username..' is not GLOBAL ADMIN')
end
data['admins'][tostring(member_id)] = nil
save_data(_config.moderation.data, data)
return send_large_msg(receiver, '@'..member_username..' remove from GLOBAL ADMIN list')
end
local function username_id(cb_extra, success, result)
local mod_cmd = cb_extra.mod_cmd
local receiver = cb_extra.receiver
local member = cb_extra.member
local text = 'No @'..member..' in group'
for k,v in pairs(result.members) do
vusername = v.username
if vusername == member then
member_username = member
member_id = v.id
if mod_cmd == 'modset' then
return promote(receiver, member_username, member_id)
elseif mod_cmd == 'moddem' then
return demote(receiver, member_username, member_id)
elseif mod_cmd == 'adminset' then
return admin_promote(receiver, member_username, member_id)
elseif mod_cmd == 'admindem' then
return admin_demote(receiver, member_username, member_id)
end
end
end
send_large_msg(receiver, text)
end
local function modlist(msg)
local data = load_data(_config.moderation.data)
if not data[tostring(msg.to.id)] then
return 'Group have not moderator list'
end
-- determine if table is empty
if next(data[tostring(msg.to.id)]['moderators']) == nil then --fix way
return 'No moderator in group'
end
local message = '' .. string.gsub(msg.to.print_name, '_', ' ') .. ' Moderator list:\n______________________________\n'
for k,v in pairs(data[tostring(msg.to.id)]['moderators']) do
message = message .. '> @'..v..' (' ..k.. ') \n'
end
return message
end
local function admin_list(msg)
local data = load_data(_config.moderation.data)
if not data['admins'] then
data['admins'] = {}
save_data(_config.moderation.data, data)
end
if next(data['admins']) == nil then --fix way
return 'No GLOBAL ADMIN available'
end
local message = 'Quick Guard Bot GLOBAL ADMINS:\n______________________________\n'
for k,v in pairs(data['admins']) do
message = message .. '>> @'.. v ..' ('..k..') \n'
end
return message
end
function run(msg, matches)
if matches[1] == 'debug' then
return debugs(msg)
end
if not is_chat_msg(msg) then
return "Only work in group"
end
local mod_cmd = matches[1]
local receiver = get_receiver(msg)
if matches[1] == 'modadd' then
return modadd(msg)
end
if matches[1] == 'modrem' then
return modrem(msg)
end
if matches[1] == 'modset' and matches[2] then
if not is_momod(msg) then
return "GLOBAL ADMIN and moderator can set moderator"
end
local member = string.gsub(matches[2], "@", "")
chat_info(receiver, username_id, {mod_cmd= mod_cmd, receiver=receiver, member=member})
end
if matches[1] == 'moddem' and matches[2] then
if not is_momod(msg) then
return "GLOBAL ADMIN and moderator can demote moderator"
end
if string.gsub(matches[2], "@", "") == msg.from.username then
return "can not demote yourself"
end
local member = string.gsub(matches[2], "@", "")
chat_info(receiver, username_id, {mod_cmd= mod_cmd, receiver=receiver, member=member})
end
if matches[1] == 'modlist' then
return modlist(msg)
end
if matches[1] == 'adminset' then
if not is_admin(msg) then
return "Only SUDO can set GLOBAL ADMIN"
end
local member = string.gsub(matches[2], "@", "")
chat_info(receiver, username_id, {mod_cmd= mod_cmd, receiver=receiver, member=member})
end
if matches[1] == 'admindem' then
if not is_admin(msg) then
return "Only SUDO can demote GLOBAL ADMIN"
end
local member = string.gsub(matches[2], "@", "")
chat_info(receiver, username_id, {mod_cmd= mod_cmd, receiver=receiver, member=member})
end
if matches[1] == 'adminlist' then
if not is_admin(msg) then
return 'You are NOT GLOBAL ADMIN'
end
return admin_list(msg)
end
if matches[1] == 'chat_add_user' and msg.action.user.id == our_id then
return automodadd(msg)
end
if matches[1] == 'chat_created' and msg.from.id == 0 then
return automodadd(msg)
end
end
return {
description = "Robot and Group Moderation System",
usage = {
moderator = {
"/modlist : moderator list",
"/modset (@user) : set moderator",
"/moddem (@user) : remove moderator",
},
admin = {
"/modadd : add moderation list",
"/modrem : remove moderation list",
"/adminlist : global admin list",
"/adminset (@user) : set global admin",
"/admindem (@user) : remove global admin",
},
sudo = {
"/adminset (@user) : set global admin",
"/admindem (@user) : remove global admin",
},
},
patterns = {
"^[!/](modadd)$",
"^[!/](modrem)$",
"^[!/](modset) (.*)$",
"^[!/](moddem) (.*)$",
"^[!/](modlist)$",
"^[!/](adminset) (.*)$", -- sudoers only
"^[!/](admindem) (.*)$", -- sudoers only
"^[!/](adminlist)$",
"^!!tgservice (chat_add_user)$",
"^!!tgservice (chat_created)$",
},
run = run,
}
end
| gpl-2.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/weapon/component/projectile_rifle_barrel.lua | 1 | 3188 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_weapon_component_projectile_rifle_barrel = object_draft_schematic_weapon_component_shared_projectile_rifle_barrel:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Projectile Rifle Barrel",
craftingToolTab = 1, -- (See DraftSchematicObjectTemplate.h)
complexity = 5,
size = 1,
xpType = "crafting_weapons_general",
xp = 90,
assemblySkill = "weapon_assembly",
experimentingSkill = "weapon_experimentation",
customizationSkill = "weapon_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_weapon_ingredients_n", "craft_weapon_ingredients_n"},
ingredientTitleNames = {"lining", "bore"},
ingredientSlotType = {0, 0},
resourceTypes = {"steel", "metal"},
resourceQuantities = {31, 15},
contribution = {100, 100},
targetTemplate = "object/tangible/component/weapon/projectile_rifle_barrel.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_weapon_component_projectile_rifle_barrel, "object/draft_schematic/weapon/component/projectile_rifle_barrel.iff")
| agpl-3.0 |
Echoes91/mobs | dirtmonster.lua | 1 | 1063 |
-- Dirt Monster by PilzAdam
mobs:register_mob("mobs:dirt_monster", {
type = "monster",
passive = false,
attack_type = "dogfight",
reach = 2,
damage = 2,
hp_min = 3,
hp_max = 27,
armor = 100,
collisionbox = {-0.4, -1, -0.4, 0.4, 0.8, 0.4},
visual = "mesh",
mesh = "mobs_stone_monster.b3d",
textures = {
{"mobs_dirt_monster.png"},
},
blood_texture = "default_dirt.png",
makes_footstep_sound = true,
sounds = {
random = "mobs_dirtmonster",
},
view_range = 15,
walk_velocity = 1,
run_velocity = 3,
jump = true,
drops = {
{name = "default:dirt",
chance = 1, min = 3, max = 5},
},
water_damage = 1,
lava_damage = 5,
light_damage = 2,
animation = {
speed_normal = 15,
speed_run = 15,
stand_start = 0,
stand_end = 14,
walk_start = 15,
walk_end = 38,
run_start = 40,
run_end = 63,
punch_start = 40,
punch_end = 63,
},
})
mobs:register_spawn("mobs:dirt_monster", {"default:dirt_with_grass", "ethereal:gray_dirt"}, 5, 0, 7000, 1, 31000)
mobs:register_egg("mobs:dirt_monster", "Dirt Monster", "default_dirt.png", 1) | mit |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/attachment/weapon/yt1300_radar_s01_0.lua | 3 | 2288 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_ship_attachment_weapon_yt1300_radar_s01_0 = object_tangible_ship_attachment_weapon_shared_yt1300_radar_s01_0:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_attachment_weapon_yt1300_radar_s01_0, "object/tangible/ship/attachment/weapon/yt1300_radar_s01_0.iff")
| agpl-3.0 |
mretegan/crispy | crispy/quanty/templates/4d_Td_RIXS_2p4d.lua | 1 | 23999 | --------------------------------------------------------------------------------
-- Quanty input file generated using Crispy. If you use this file please cite
-- the following reference: http://dx.doi.org/10.5281/zenodo.1008184.
--
-- elements: 4d
-- symmetry: Td
-- experiment: RIXS
-- edge: L2,3-N4,5 (2p4d)
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Set the verbosity of the calculation. For increased verbosity use the values
-- 0x00FF or 0xFFFF.
--------------------------------------------------------------------------------
Verbosity($Verbosity)
--------------------------------------------------------------------------------
-- Define the parameters of the calculation.
--------------------------------------------------------------------------------
Temperature = $Temperature -- Temperature (Kelvin).
NPsis = $NPsis -- Number of states to consider in the spectra calculation.
NPsisAuto = $NPsisAuto -- Determine the number of state automatically.
NConfigurations = $NConfigurations -- Number of configurations.
-- X-axis parameters.
Emin1 = $XEmin -- Minimum value of the energy range (eV).
Emax1 = $XEmax -- Maximum value of the energy range (eV).
NPoints1 = $XNPoints -- Number of points of the spectra.
ZeroShift1 = $XZeroShift -- Shift that brings the edge or line energy to approximately zero (eV).
ExperimentalShift1 = $XExperimentalShift -- Experimental edge or line energy (eV).
Gaussian1 = $XGaussian -- Gaussian FWHM (eV).
Gamma1 = $XGamma -- Lorentzian FWHM used in the spectra calculation (eV).
WaveVector = $XWaveVector -- Wave vector.
Ev = $XFirstPolarization -- Vertical polarization.
Eh = $XSecondPolarization -- Horizontal polarization.
-- Y-axis parameters.
Emin2 = $YEmin -- Minimum value of the energy range (eV).
Emax2 = $YEmax -- Maximum value of the energy range (eV).
NPoints2 = $YNPoints -- Number of points of the spectra.
ZeroShift2 = $YZeroShift -- Shift that brings the edge or line energy to approximately zero (eV).
ExperimentalShift2 = $YExperimentalShift -- Experimental edge or line energy (eV).
Gaussian2 = $YGaussian -- Gaussian FWHM (eV).
Gamma2 = $YGamma -- Lorentzian FWHM used in the spectra calculation (eV).
WaveVector = $YWaveVector -- Wave vector.
Ev = $YFirstPolarization -- Vertical polarization.
Eh = $YSecondPolarization -- Horizontal polarization.
SpectraToCalculate = $SpectraToCalculate -- Types of spectra to calculate.
DenseBorder = $DenseBorder -- Number of determinants where we switch from dense methods to sparse methods.
ShiftSpectra = $ShiftSpectra -- If enabled, shift the spectra in the experimental energy range.
Prefix = "$Prefix" -- File name prefix.
--------------------------------------------------------------------------------
-- Toggle the Hamiltonian terms.
--------------------------------------------------------------------------------
AtomicTerm = $AtomicTerm
CrystalFieldTerm = $CrystalFieldTerm
MagneticFieldTerm = $MagneticFieldTerm
ExchangeFieldTerm = $ExchangeFieldTerm
--------------------------------------------------------------------------------
-- Define the number of electrons, shells, etc.
--------------------------------------------------------------------------------
NBosons = 0
NFermions = 16
NElectrons_2p = 6
NElectrons_4d = $NElectrons_4d
IndexDn_2p = {0, 2, 4}
IndexUp_2p = {1, 3, 5}
IndexDn_4d = {6, 8, 10, 12, 14}
IndexUp_4d = {7, 9, 11, 13, 15}
--------------------------------------------------------------------------------
-- Initialize the Hamiltonians.
--------------------------------------------------------------------------------
H_i = 0
H_m = 0
H_f = 0
--------------------------------------------------------------------------------
-- Define the atomic term.
--------------------------------------------------------------------------------
N_2p = NewOperator("Number", NFermions, IndexUp_2p, IndexUp_2p, {1, 1, 1})
+ NewOperator("Number", NFermions, IndexDn_2p, IndexDn_2p, {1, 1, 1})
N_4d = NewOperator("Number", NFermions, IndexUp_4d, IndexUp_4d, {1, 1, 1, 1, 1})
+ NewOperator("Number", NFermions, IndexDn_4d, IndexDn_4d, {1, 1, 1, 1, 1})
if AtomicTerm then
F0_4d_4d = NewOperator("U", NFermions, IndexUp_4d, IndexDn_4d, {1, 0, 0})
F2_4d_4d = NewOperator("U", NFermions, IndexUp_4d, IndexDn_4d, {0, 1, 0})
F4_4d_4d = NewOperator("U", NFermions, IndexUp_4d, IndexDn_4d, {0, 0, 1})
F0_2p_4d = NewOperator("U", NFermions, IndexUp_2p, IndexDn_2p, IndexUp_4d, IndexDn_4d, {1, 0}, {0, 0})
F2_2p_4d = NewOperator("U", NFermions, IndexUp_2p, IndexDn_2p, IndexUp_4d, IndexDn_4d, {0, 1}, {0, 0})
G1_2p_4d = NewOperator("U", NFermions, IndexUp_2p, IndexDn_2p, IndexUp_4d, IndexDn_4d, {0, 0}, {1, 0})
G3_2p_4d = NewOperator("U", NFermions, IndexUp_2p, IndexDn_2p, IndexUp_4d, IndexDn_4d, {0, 0}, {0, 1})
U_4d_4d_i = $U(4d,4d)_i_value
F2_4d_4d_i = $F2(4d,4d)_i_value * $F2(4d,4d)_i_scaleFactor
F4_4d_4d_i = $F4(4d,4d)_i_value * $F4(4d,4d)_i_scaleFactor
F0_4d_4d_i = U_4d_4d_i + 2 / 63 * F2_4d_4d_i + 2 / 63 * F4_4d_4d_i
U_4d_4d_m = $U(4d,4d)_m_value
F2_4d_4d_m = $F2(4d,4d)_m_value * $F2(4d,4d)_m_scaleFactor
F4_4d_4d_m = $F4(4d,4d)_m_value * $F4(4d,4d)_m_scaleFactor
F0_4d_4d_m = U_4d_4d_m + 2 / 63 * F2_4d_4d_m + 2 / 63 * F4_4d_4d_m
U_2p_4d_m = $U(2p,4d)_m_value
F2_2p_4d_m = $F2(2p,4d)_m_value * $F2(2p,4d)_m_scaleFactor
G1_2p_4d_m = $G1(2p,4d)_m_value * $G1(2p,4d)_m_scaleFactor
G3_2p_4d_m = $G3(2p,4d)_m_value * $G3(2p,4d)_m_scaleFactor
F0_2p_4d_m = U_2p_4d_m + 1 / 15 * G1_2p_4d_m + 3 / 70 * G3_2p_4d_m
U_4d_4d_f = $U(4d,4d)_f_value
F2_4d_4d_f = $F2(4d,4d)_f_value * $F2(4d,4d)_f_scaleFactor
F4_4d_4d_f = $F4(4d,4d)_f_value * $F4(4d,4d)_f_scaleFactor
F0_4d_4d_f = U_4d_4d_f + 2 / 63 * F2_4d_4d_f + 2 / 63 * F4_4d_4d_f
H_i = H_i + Chop(
F0_4d_4d_i * F0_4d_4d
+ F2_4d_4d_i * F2_4d_4d
+ F4_4d_4d_i * F4_4d_4d)
H_m = H_m + Chop(
F0_4d_4d_m * F0_4d_4d
+ F2_4d_4d_m * F2_4d_4d
+ F4_4d_4d_m * F4_4d_4d
+ F0_2p_4d_m * F0_2p_4d
+ F2_2p_4d_m * F2_2p_4d
+ G1_2p_4d_m * G1_2p_4d
+ G3_2p_4d_m * G3_2p_4d)
H_f = H_f + Chop(
F0_4d_4d_f * F0_4d_4d
+ F2_4d_4d_f * F2_4d_4d
+ F4_4d_4d_f * F4_4d_4d)
ldots_4d = NewOperator("ldots", NFermions, IndexUp_4d, IndexDn_4d)
ldots_2p = NewOperator("ldots", NFermions, IndexUp_2p, IndexDn_2p)
zeta_4d_i = $zeta(4d)_i_value * $zeta(4d)_i_scaleFactor
zeta_4d_m = $zeta(4d)_m_value * $zeta(4d)_m_scaleFactor
zeta_2p_m = $zeta(2p)_m_value * $zeta(2p)_m_scaleFactor
zeta_4d_f = $zeta(4d)_f_value * $zeta(4d)_f_scaleFactor
H_i = H_i + Chop(
zeta_4d_i * ldots_4d)
H_m = H_m + Chop(
zeta_4d_m * ldots_4d
+ zeta_2p_m * ldots_2p)
H_f = H_f + Chop(
zeta_4d_f * ldots_4d)
end
--------------------------------------------------------------------------------
-- Define the crystal field term.
--------------------------------------------------------------------------------
if CrystalFieldTerm then
-- PotentialExpandedOnClm("Td", 2, {Ee, Et2})
-- tenDq_4d = NewOperator("CF", NFermions, IndexUp_4d, IndexDn_4d, PotentialExpandedOnClm("Td", 2, {-0.6, 0.4}))
Akm = {{4, 0, -2.1}, {4, -4, -1.5 * sqrt(0.7)}, {4, 4, -1.5 * sqrt(0.7)}}
tenDq_4d = NewOperator("CF", NFermions, IndexUp_4d, IndexDn_4d, Akm)
tenDq_4d_i = $10Dq(4d)_i_value
io.write("Diagonal values of the initial crystal field Hamiltonian:\n")
io.write("================\n")
io.write("Irrep. E\n")
io.write("================\n")
io.write(string.format("e %8.3f\n", -0.6 * tenDq_4d_i))
io.write(string.format("t2 %8.3f\n", 0.4 * tenDq_4d_i))
io.write("================\n")
io.write("\n")
tenDq_4d_m = $10Dq(4d)_m_value
tenDq_4d_f = $10Dq(4d)_f_value
H_i = H_i + Chop(
tenDq_4d_i * tenDq_4d)
H_m = H_m + Chop(
tenDq_4d_m * tenDq_4d)
H_f = H_f + Chop(
tenDq_4d_f * tenDq_4d)
end
--------------------------------------------------------------------------------
-- Define the magnetic field and exchange field terms.
--------------------------------------------------------------------------------
Sx_4d = NewOperator("Sx", NFermions, IndexUp_4d, IndexDn_4d)
Sy_4d = NewOperator("Sy", NFermions, IndexUp_4d, IndexDn_4d)
Sz_4d = NewOperator("Sz", NFermions, IndexUp_4d, IndexDn_4d)
Ssqr_4d = NewOperator("Ssqr", NFermions, IndexUp_4d, IndexDn_4d)
Splus_4d = NewOperator("Splus", NFermions, IndexUp_4d, IndexDn_4d)
Smin_4d = NewOperator("Smin", NFermions, IndexUp_4d, IndexDn_4d)
Lx_4d = NewOperator("Lx", NFermions, IndexUp_4d, IndexDn_4d)
Ly_4d = NewOperator("Ly", NFermions, IndexUp_4d, IndexDn_4d)
Lz_4d = NewOperator("Lz", NFermions, IndexUp_4d, IndexDn_4d)
Lsqr_4d = NewOperator("Lsqr", NFermions, IndexUp_4d, IndexDn_4d)
Lplus_4d = NewOperator("Lplus", NFermions, IndexUp_4d, IndexDn_4d)
Lmin_4d = NewOperator("Lmin", NFermions, IndexUp_4d, IndexDn_4d)
Jx_4d = NewOperator("Jx", NFermions, IndexUp_4d, IndexDn_4d)
Jy_4d = NewOperator("Jy", NFermions, IndexUp_4d, IndexDn_4d)
Jz_4d = NewOperator("Jz", NFermions, IndexUp_4d, IndexDn_4d)
Jsqr_4d = NewOperator("Jsqr", NFermions, IndexUp_4d, IndexDn_4d)
Jplus_4d = NewOperator("Jplus", NFermions, IndexUp_4d, IndexDn_4d)
Jmin_4d = NewOperator("Jmin", NFermions, IndexUp_4d, IndexDn_4d)
Tx_4d = NewOperator("Tx", NFermions, IndexUp_4d, IndexDn_4d)
Ty_4d = NewOperator("Ty", NFermions, IndexUp_4d, IndexDn_4d)
Tz_4d = NewOperator("Tz", NFermions, IndexUp_4d, IndexDn_4d)
Sx = Sx_4d
Sy = Sy_4d
Sz = Sz_4d
Lx = Lx_4d
Ly = Ly_4d
Lz = Lz_4d
Jx = Jx_4d
Jy = Jy_4d
Jz = Jz_4d
Tx = Tx_4d
Ty = Ty_4d
Tz = Tz_4d
Ssqr = Sx * Sx + Sy * Sy + Sz * Sz
Lsqr = Lx * Lx + Ly * Ly + Lz * Lz
Jsqr = Jx * Jx + Jy * Jy + Jz * Jz
if MagneticFieldTerm then
-- The values are in eV, and not Tesla. To convert from Tesla to eV multiply
-- the value with EnergyUnits.Tesla.value.
Bx_i = $Bx_i_value
By_i = $By_i_value
Bz_i = $Bz_i_value
Bx_m = $Bx_m_value
By_m = $By_m_value
Bz_m = $Bz_m_value
Bx_f = $Bx_f_value
By_f = $By_f_value
Bz_f = $Bz_f_value
H_i = H_i + Chop(
Bx_i * (2 * Sx + Lx)
+ By_i * (2 * Sy + Ly)
+ Bz_i * (2 * Sz + Lz))
H_m = H_m + Chop(
Bx_m * (2 * Sx + Lx)
+ By_m * (2 * Sy + Ly)
+ Bz_m * (2 * Sz + Lz))
H_f = H_f + Chop(
Bx_f * (2 * Sx + Lx)
+ By_f * (2 * Sy + Ly)
+ Bz_f * (2 * Sz + Lz))
end
if ExchangeFieldTerm then
Hx_i = $Hx_i_value
Hy_i = $Hy_i_value
Hz_i = $Hz_i_value
Hx_m = $Hx_m_value
Hy_m = $Hy_m_value
Hz_m = $Hz_m_value
Hx_f = $Hx_f_value
Hy_f = $Hy_f_value
Hz_f = $Hz_f_value
H_i = H_i + Chop(
Hx_i * Sx
+ Hy_i * Sy
+ Hz_i * Sz)
H_m = H_m + Chop(
Hx_m * Sx
+ Hy_m * Sy
+ Hz_m * Sz)
H_f = H_f + Chop(
Hx_f * Sx
+ Hy_f * Sy
+ Hz_f * Sz)
end
--------------------------------------------------------------------------------
-- Define the restrictions and set the number of initial states.
--------------------------------------------------------------------------------
InitialRestrictions = {NFermions, NBosons, {"111111 0000000000", NElectrons_2p, NElectrons_2p},
{"000000 1111111111", NElectrons_4d, NElectrons_4d}}
IntermediateRestrictions = {NFermions, NBosons, {"111111 0000000000", NElectrons_2p - 1, NElectrons_2p - 1},
{"000000 1111111111", NElectrons_4d + 1, NElectrons_4d + 1}}
FinalRestrictions = InitialRestrictions
CalculationRestrictions = nil
--------------------------------------------------------------------------------
-- Define some helper functions.
--------------------------------------------------------------------------------
function MatrixToOperator(Matrix, StartIndex)
-- Transform a matrix to an operator.
local Operator = 0
for i = 1, #Matrix do
for j = 1, #Matrix do
local Weight = Matrix[i][j]
Operator = Operator + NewOperator("Number", #Matrix + StartIndex, i + StartIndex - 1, j + StartIndex - 1) * Weight
end
end
Operator.Chop()
return Operator
end
function ValueInTable(Value, Table)
-- Check if a value is in a table.
for _, v in ipairs(Table) do
if Value == v then
return true
end
end
return false
end
function GetSpectrum(G, Ids, dZ, NOperators, NPsis)
-- Extract the spectrum corresponding to the operators identified using the
-- Ids argument. The returned spectrum is a weighted sum, where the weights
-- are the Boltzmann probabilities.
--
-- @param G userdata: Spectrum object as returned by the functions defined in Quanty, i.e. one spectrum
-- for each operator and each wavefunction.
-- @param Ids table: Indexes of the operators that are considered in the returned spectrum.
-- @param dZ table: Boltzmann prefactors for each of the spectrum in the spectra object.
-- @param NOperators number: Number of transition operators.
-- @param NPsis number: Number of wavefunctions.
if not (type(Ids) == "table") then
Ids = {Ids}
end
local Id = 1
local dZs = {}
for i = 1, NOperators do
for _ = 1, NPsis do
if ValueInTable(i, Ids) then
table.insert(dZs, dZ[Id])
else
table.insert(dZs, 0)
end
Id = Id + 1
end
end
return Spectra.Sum(G, dZs)
end
function SaveSpectrum(G, Filename, Gaussian, Lorentzian, Pcl)
if Pcl == nil then
Pcl = 1
end
G = -1 / math.pi / Pcl * G
G.Broaden(Gaussian, Lorentzian)
G.Print({{"file", Filename .. ".spec"}})
end
function CalculateT(Basis, Eps, K)
-- Calculate the transition operator in the basis of tesseral harmonics for
-- an arbitrary polarization and wave-vector (for quadrupole operators).
--
-- @param Basis table: Operators forming the basis.
-- @param Eps table: Cartesian components of the polarization vector.
-- @param K table: Cartesian components of the wave-vector.
if #Basis == 3 then
-- The basis for the dipolar operators must be in the order x, y, z.
T = Eps[1] * Basis[1]
+ Eps[2] * Basis[2]
+ Eps[3] * Basis[3]
elseif #Basis == 5 then
-- The basis for the quadrupolar operators must be in the order xy, xz, yz, x2y2, z2.
T = (Eps[1] * K[2] + Eps[2] * K[1]) / math.sqrt(3) * Basis[1]
+ (Eps[1] * K[3] + Eps[3] * K[1]) / math.sqrt(3) * Basis[2]
+ (Eps[2] * K[3] + Eps[3] * K[2]) / math.sqrt(3) * Basis[3]
+ (Eps[1] * K[1] - Eps[2] * K[2]) / math.sqrt(3) * Basis[4]
+ (Eps[3] * K[3]) * Basis[5]
end
return Chop(T)
end
function DotProduct(a, b)
return Chop(a[1] * b[1] + a[2] * b[2] + a[3] * b[3])
end
function WavefunctionsAndBoltzmannFactors(H, NPsis, NPsisAuto, Temperature, Threshold, StartRestrictions, CalculationRestrictions)
-- Calculate the wavefunctions and Boltzmann factors of a Hamiltonian.
--
-- @param H userdata: Hamiltonian for which to calculate the wavefunctions.
-- @param NPsis number: The number of wavefunctions.
-- @param NPsisAuto boolean: Determine automatically the number of wavefunctions that are populated at the specified
-- temperature and within the threshold.
-- @param Temperature number: The temperature in eV.
-- @param Threshold number: Threshold used to determine the number of wavefunction in the automatic procedure.
-- @param StartRestrictions table: Occupancy restrictions at the start of the calculation.
-- @param CalculationRestrictions table: Occupancy restrictions used during the calculation.
-- @return table: The calculated wavefunctions.
-- @return table: The calculated Boltzmann factors.
if Threshold == nil then
Threshold = 1e-8
end
local dZ = {}
local Z = 0
local Psis
if NPsisAuto == true and NPsis ~= 1 then
NPsis = 4
local NPsisIncrement = 8
local NPsisIsConverged = false
while not NPsisIsConverged do
if CalculationRestrictions == nil then
Psis = Eigensystem(H, StartRestrictions, NPsis)
else
Psis = Eigensystem(H, StartRestrictions, NPsis, {{"restrictions", CalculationRestrictions}})
end
if not (type(Psis) == "table") then
Psis = {Psis}
end
if E_gs == nil then
E_gs = Psis[1] * H * Psis[1]
end
Z = 0
for i, Psi in ipairs(Psis) do
local E = Psi * H * Psi
if math.abs(E - E_gs) < Threshold ^ 2 then
dZ[i] = 1
else
dZ[i] = math.exp(-(E - E_gs) / Temperature)
end
Z = Z + dZ[i]
if dZ[i] / Z < Threshold then
i = i - 1
NPsisIsConverged = true
NPsis = i
Psis = {unpack(Psis, 1, i)}
dZ = {unpack(dZ, 1, i)}
break
end
end
if NPsisIsConverged then
break
else
NPsis = NPsis + NPsisIncrement
end
end
else
if CalculationRestrictions == nil then
Psis = Eigensystem(H, StartRestrictions, NPsis)
else
Psis = Eigensystem(H, StartRestrictions, NPsis, {{"restrictions", CalculationRestrictions}})
end
if not (type(Psis) == "table") then
Psis = {Psis}
end
local E_gs = Psis[1] * H * Psis[1]
Z = 0
for i, psi in ipairs(Psis) do
local E = psi * H * psi
if math.abs(E - E_gs) < Threshold ^ 2 then
dZ[i] = 1
else
dZ[i] = math.exp(-(E - E_gs) / Temperature)
end
Z = Z + dZ[i]
end
end
-- Normalize the Boltzmann factors to unity.
for i in ipairs(dZ) do
dZ[i] = dZ[i] / Z
end
return Psis, dZ
end
function PrintHamiltonianAnalysis(Psis, Operators, dZ, Header, Footer)
io.write(Header)
for i, Psi in ipairs(Psis) do
io.write(string.format("%5d", i))
for j, Operator in ipairs(Operators) do
if j == 1 then
io.write(string.format("%12.6f", Complex.Re(Psi * Operator * Psi)))
elseif Operator == "dZ" then
io.write(string.format("%12.2e", dZ[i]))
else
io.write(string.format("%10.4f", Complex.Re(Psi * Operator * Psi)))
end
end
io.write("\n")
end
io.write(Footer)
end
function CalculateEnergyDifference(H1, H1Restrictions, H2, H2Restrictions)
-- Calculate the energy difference between the lowest eigenstates of the two
-- Hamiltonians.
--
-- @param H1 userdata: The first Hamiltonian.
-- @param H1Restrictions table: Restrictions of the occupation numbers for H1.
-- @param H2 userdata: The second Hamiltonian.
-- @param H2Restrictions table: Restrictions of the occupation numbers for H2.
local E1 = 0.0
local E2 = 0.0
if H1 ~= nil and H1Restrictions ~= nil then
Psis1, _ = WavefunctionsAndBoltzmannFactors(H1, 1, false, 0, nil, H1Restrictions, nil)
E1 = Psis1[1] * H1 * Psis1[1]
end
if H2 ~= nil and H2Restrictions ~= nil then
Psis2, _ = WavefunctionsAndBoltzmannFactors(H2, 1, false, 0, nil, H2Restrictions, nil)
E2 = Psis2[1] * H2 * Psis2[1]
end
return E1 - E2
end
--------------------------------------------------------------------------------
-- Analyze the initial Hamiltonian.
--------------------------------------------------------------------------------
Temperature = Temperature * EnergyUnits.Kelvin.value
Sk = DotProduct(WaveVector, {Sx, Sy, Sz})
Lk = DotProduct(WaveVector, {Lx, Ly, Lz})
Jk = DotProduct(WaveVector, {Jx, Jy, Jz})
Tk = DotProduct(WaveVector, {Tx, Ty, Tz})
Operators = {H_i, Ssqr, Lsqr, Jsqr, Sk, Lk, Jk, Tk, ldots_4d, N_2p, N_4d, "dZ"}
Header = "Analysis of the %s Hamiltonian:\n"
Header = Header .. "=================================================================================================================================\n"
Header = Header .. "State E <S^2> <L^2> <J^2> <Sk> <Lk> <Jk> <Tk> <l.s> <N_2p> <N_4d> dZ\n"
Header = Header .. "=================================================================================================================================\n"
Footer = '=================================================================================================================================\n'
local Psis_i, dZ_i = WavefunctionsAndBoltzmannFactors(H_i, NPsis, NPsisAuto, Temperature, nil, InitialRestrictions, CalculationRestrictions)
PrintHamiltonianAnalysis(Psis_i, Operators, dZ_i, string.format(Header, "initial"), Footer)
-- Stop the calculation if no spectra need to be calculated.
if next(SpectraToCalculate) == nil then
return
end
--------------------------------------------------------------------------------
-- Calculate and save the spectra.
--------------------------------------------------------------------------------
local t = math.sqrt(1 / 2)
Tx_2p_4d = NewOperator("CF", NFermions, IndexUp_4d, IndexDn_4d, IndexUp_2p, IndexDn_2p, {{1, -1, t }, {1, 1, -t }})
Ty_2p_4d = NewOperator("CF", NFermions, IndexUp_4d, IndexDn_4d, IndexUp_2p, IndexDn_2p, {{1, -1, t * I}, {1, 1, t * I}})
Tz_2p_4d = NewOperator("CF", NFermions, IndexUp_4d, IndexDn_4d, IndexUp_2p, IndexDn_2p, {{1, 0, 1 } })
Tx_4d_2p = NewOperator("CF", NFermions, IndexUp_2p, IndexDn_2p, IndexUp_4d, IndexDn_4d, {{1, -1, t }, {1, 1, -t }})
Ty_4d_2p = NewOperator("CF", NFermions, IndexUp_2p, IndexDn_2p, IndexUp_4d, IndexDn_4d, {{1, -1, t * I}, {1, 1, t * I}})
Tz_4d_2p = NewOperator("CF", NFermions, IndexUp_2p, IndexDn_2p, IndexUp_4d, IndexDn_4d, {{1, 0, 1 } })
T_2p_4d = {Tx_2p_4d, Ty_2p_4d, Tz_2p_4d}
T_4d_2p = {Tx_4d_2p, Ty_4d_2p, Tz_4d_2p}
if ShiftSpectra then
Emin1 = Emin1 - (ZeroShift1 + ExperimentalShift1)
Emax1 = Emax1 - (ZeroShift1 + ExperimentalShift1)
Emin2 = Emin2 - (ZeroShift2 + ExperimentalShift2)
Emax2 = Emax2 - (ZeroShift2 + ExperimentalShift2)
end
if CalculationRestrictions == nil then
G = CreateResonantSpectra(H_m, H_f, T_2p_4d, T_4d_2p, Psis_i, {{"Emin1", Emin1}, {"Emax1", Emax1}, {"NE1", NPoints1}, {"Gamma1", Gamma1}, {"Emin2", Emin2}, {"Emax2", Emax2}, {"NE2", NPoints2}, {"Gamma2", Gamma2}, {"DenseBorder", DenseBorder}})
else
G = CreateResonantSpectra(H_m, H_f, T_2p_4d, T_4d_2p, Psis_i, {{"Emin1", Emin1}, {"Emax1", Emax1}, {"NE1", NPoints1}, {"Gamma1", Gamma1}, {"Emin2", Emin2}, {"Emax2", Emax2}, {"NE2", NPoints2}, {"Gamma2", Gamma2}, {"Restrictions1", CalculationRestrictions}, {"Restrictions2", CalculationRestrictions}, {"DenseBorder", DenseBorder}})
end
Giso = 0
Shift = 0
for i = 1, #Psis_i do
for j = 1, #T_2p_4d * #T_4d_2p do
Indexes = {}
for k = 1, NPoints1 + 1 do
table.insert(Indexes, k + Shift)
end
Giso = Giso + Spectra.Element(G, Indexes) * dZ_i[i]
Shift = Shift + NPoints1 + 1
end
end
-- The Gaussian broadening is done using the same value for the two dimensions.
Gaussian = math.min(Gaussian1, Gaussian2)
if Gaussian ~= 0 then
Giso.Broaden(Gaussian, 0.0)
end
Giso = -1 / math.pi * Giso
Giso.Print({{"file", Prefix .. "_iso.spec"}})
| mit |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/wearables/ithorian/ith_necklace_s05.lua | 3 | 2848 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_wearables_ithorian_ith_necklace_s05 = object_tangible_wearables_ithorian_shared_ith_necklace_s05:new {
playerRaces = { "object/creature/player/ithorian_male.iff",
"object/creature/player/ithorian_female.iff",
"object/mobile/vendor/ithorian_female.iff",
"object/mobile/vendor/ithorian_male.iff" },
numberExperimentalProperties = {1, 1, 1},
experimentalProperties = {"XX", "XX", "XX"},
experimentalWeights = {1, 1, 1},
experimentalGroupTitles = {"null", "null", "null"},
experimentalSubGroupTitles = {"null", "null", "hitpoints"},
experimentalMin = {0, 0, 1000},
experimentalMax = {0, 0, 1000},
experimentalPrecision = {0, 0, 0},
experimentalCombineType = {0, 0, 4},
}
ObjectTemplates:addTemplate(object_tangible_wearables_ithorian_ith_necklace_s05, "object/tangible/wearables/ithorian/ith_necklace_s05.iff")
| agpl-3.0 |
TeleCU/cna2 | plugins/time.lua | 94 | 3004 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://maps.googleapis.com/maps/api"
dateFormat = "%A %d %B - %H:%M:%S"
-- Need the utc time for the google api
function utctime()
return os.time(os.date("!*t"))
end
-- Use the geocoding api to get the lattitude and longitude with accuracy specifier
-- CHECKME: this seems to work without a key??
function get_latlong(area)
local api = base_api .. "/geocode/json?"
local parameters = "address=".. (URL.escape(area) or "")
if api_key ~= nil then
parameters = parameters .. "&key="..api_key
end
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
if (data.status == "ZERO_RESULTS") then
return nil
end
if (data.status == "OK") then
-- Get the data
lat = data.results[1].geometry.location.lat
lng = data.results[1].geometry.location.lng
acc = data.results[1].geometry.location_type
types= data.results[1].types
return lat,lng,acc,types
end
end
-- Use timezone api to get the time in the lat,
-- Note: this needs an API key
function get_time(lat,lng)
local api = base_api .. "/timezone/json?"
-- Get a timestamp (server time is relevant here)
local timestamp = utctime()
local parameters = "location=" ..
URL.escape(lat) .. "," ..
URL.escape(lng) ..
"×tamp="..URL.escape(timestamp)
if api_key ~=nil then
parameters = parameters .. "&key="..api_key
end
local res,code = https.request(api..parameters)
if code ~= 200 then return nil end
local data = json:decode(res)
if (data.status == "ZERO_RESULTS") then
return nil
end
if (data.status == "OK") then
-- Construct what we want
-- The local time in the location is:
-- timestamp + rawOffset + dstOffset
local localTime = timestamp + data.rawOffset + data.dstOffset
return localTime, data.timeZoneId
end
return localTime
end
function getformattedLocalTime(area)
if area == nil then
return "The time in nowhere is never"
end
lat,lng,acc = get_latlong(area)
if lat == nil and lng == nil then
return 'It seems that in "'..area..'" they do not have a concept of time.'
end
local localTime, timeZoneId = get_time(lat,lng)
return "The local time in "..timeZoneId.." is: ".. os.date(dateFormat,localTime)
end
function run(msg, matches)
return getformattedLocalTime(matches[1])
end
return {
description = "Displays the local time in an area",
usage = "!time [area]: Displays the local time in that area",
patterns = {"^!time (.*)$"},
run = run
}
--Copyright and edit; @behroozyaghi
--Persian Translate; @behroozyaghi
--ch : @nod32team
--کپی بدون ذکر منبع حرام است
| gpl-2.0 |
mehdimax/mega | plugins/all.lua | 184 | 4452 | do
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print_name(user)..' ['..user_id..']'
return user_info
end
local function chat_stats(chat_id)
local hash = 'chat:'..chat_id..':users'
local users = redis:smembers(hash)
local users_info = {}
for i = 1, #users do
local user_id = users[i]
local user_info = get_msgs_user_chat(user_id, chat_id)
table.insert(users_info, user_info)
end
table.sort(users_info, function(a, b)
if a.msgs and b.msgs then
return a.msgs > b.msgs
end
end)
local text = 'Chat stats:\n'
for k,user in pairs(users_info) do
text = text..user.name..' = '..user.msgs..'\n'
end
return text
end
local function get_group_type(target)
local data = load_data(_config.moderation.data)
local group_type = data[tostring(target)]['group_type']
if not group_type or group_type == nil then
return 'No group type available.\nUse /type in the group to set type.'
end
return group_type
end
local function get_description(target)
local data = load_data(_config.moderation.data)
local data_cat = 'description'
if not data[tostring(target)][data_cat] then
return 'No description available.'
end
local about = data[tostring(target)][data_cat]
return about
end
local function get_rules(target)
local data = load_data(_config.moderation.data)
local data_cat = 'rules'
if not data[tostring(target)][data_cat] then
return 'No rules available.'
end
local rules = data[tostring(target)][data_cat]
return rules
end
local function modlist(target)
local data = load_data(_config.moderation.data)
local groups = 'groups'
if not data[tostring(groups)] or not data[tostring(groups)][tostring(target)] then
return 'Group is not added or is Realm.'
end
if next(data[tostring(target)]['moderators']) == nil then
return 'No moderator in this group.'
end
local i = 1
local message = '\nList of moderators :\n'
for k,v in pairs(data[tostring(target)]['moderators']) do
message = message ..i..' - @'..v..' [' ..k.. '] \n'
i = i + 1
end
return message
end
local function get_link(target)
local data = load_data(_config.moderation.data)
local group_link = data[tostring(target)]['settings']['set_link']
if not group_link or group_link == nil then
return "No link"
end
return "Group link:\n"..group_link
end
local function all(msg,target,receiver)
local data = load_data(_config.moderation.data)
if not data[tostring(target)] then
return
end
local text = "All the things I know about this group\n\n"
local group_type = get_group_type(target)
text = text.."Group Type: \n"..group_type
if group_type == "Group" or group_type == "Realm" then
local settings = show_group_settingsmod(msg,target)
text = text.."\n\n"..settings
elseif group_type == "SuperGroup" then
local settings = show_supergroup_settingsmod(msg,target)
text = text..'\n\n'..settings
end
local rules = get_rules(target)
text = text.."\n\nRules: \n"..rules
local description = get_description(target)
text = text.."\n\nAbout: \n"..description
local modlist = modlist(target)
text = text.."\n\nMods: \n"..modlist
local link = get_link(target)
text = text.."\n\nLink: \n"..link
local stats = chat_stats(target)
text = text.."\n\n"..stats
local mutes_list = mutes_list(target)
text = text.."\n\n"..mutes_list
local muted_user_list = muted_user_list(target)
text = text.."\n\n"..muted_user_list
local ban_list = ban_list(target)
text = text.."\n\n"..ban_list
local file = io.open("./groups/all/"..target.."all.txt", "w")
file:write(text)
file:flush()
file:close()
send_document(receiver,"./groups/all/"..target.."all.txt", ok_cb, false)
return
end
local function run(msg, matches)
if matches[1] == "all" and matches[2] and is_owner2(msg.from.id, matches[2]) then
local receiver = get_receiver(msg)
local target = matches[2]
return all(msg,target,receiver)
end
if not is_owner(msg) then
return
end
if matches[1] == "all" and not matches[2] then
local receiver = get_receiver(msg)
return all(msg,msg.to.id,receiver)
end
end
return {
patterns = {
"^[#!/](all)$",
"^[#!/](all) (%d+)$"
},
run = run
}
end | gpl-2.0 |
sprunk/Zero-K | units/gunshipheavyskirm.lua | 1 | 3749 | unitDef = {
unitname = [[gunshipheavyskirm]],
name = [[Nimbus]],
description = [[Fire Support Gunship]],
acceleration = 0.2,
brakeRate = 0.16,
buildCostMetal = 760,
builder = false,
buildPic = [[gunshipheavyskirm.png]],
canFly = true,
canGuard = true,
canMove = true,
canPatrol = true,
canSubmerge = false,
category = [[GUNSHIP]],
collide = true,
collisionVolumeOffsets = [[0 0 -5]],
collisionVolumeScales = [[40 20 60]],
collisionVolumeType = [[box]],
corpse = [[DEAD]],
cruiseAlt = 240,
customParams = {
airstrafecontrol = [[0]],
modelradius = [[10]],
},
explodeAs = [[GUNSHIPEX]],
floater = true,
footprintX = 3,
footprintZ = 3,
hoverAttack = true,
iconType = [[heavygunshipskirm]],
idleAutoHeal = 5,
idleTime = 1800,
maneuverleashlength = [[1280]],
maxDamage = 2800,
maxVelocity = 3.3,
minCloakDistance = 75,
noAutoFire = false,
noChaseCategory = [[TERRAFORM SATELLITE SUB]],
objectName = [[stingray.s3o]],
script = [[gunshipheavyskirm.lua]],
selfDestructAs = [[GUNSHIPEX]],
sfxtypes = {
explosiongenerators = {
[[custom:brawlermuzzle]],
[[custom:emg_shells_m]],
},
},
sightDistance = 600,
turnRate = 600,
workerTime = 0,
weapons = {
{
def = [[EMG]],
mainDir = [[0 0 1]],
maxAngleDif = 70,
onlyTargetCategory = [[SWIM LAND SHIP SINK TURRET FLOAT GUNSHIP FIXEDWING HOVER]],
},
},
weaponDefs = {
EMG = {
name = [[Heavy Pulse MG]],
areaOfEffect = 40,
avoidFeature = false,
burnBlow = true,
burst = 4,
burstrate = 0.1,
collideFriendly = false,
craterBoost = 0.15,
craterMult = 0.3,
customparams = {
combatrange = 650,
light_camera_height = 2000,
light_color = [[0.9 0.84 0.45]],
light_ground_height = 120,
},
damage = {
default = 19.3,
subs = 1.0,
},
edgeEffectiveness = 0.5,
explosionGenerator = [[custom:EMG_HIT_HE]],
firestarter = 70,
impulseBoost = 0,
impulseFactor = 0.2,
interceptedByShieldType = 1,
myGravity = 0.15,
noSelfDamage = true,
range = 600,
reloadtime = 0.433,
rgbColor = [[1 0.95 0.5]],
soundHit = [[weapon/cannon/emg_hit]],
soundStart = [[weapon/cannon/brawler_emg]],
sprayAngle = 1400,
tolerance = 2000,
turret = true,
weaponTimer = 1,
weaponType = [[Cannon]],
weaponVelocity = 420,
},
},
featureDefs = {
DEAD = {
blocking = true,
featureDead = [[HEAP]],
footprintX = 2,
footprintZ = 2,
object = [[brawler_d.s3o]],
},
HEAP = {
blocking = false,
footprintX = 2,
footprintZ = 2,
object = [[debris2x2c.s3o]],
},
},
}
return lowerkeys({ gunshipheavyskirm = unitDef })
| gpl-2.0 |
jk3064/lups | lups/ParticleClasses/StaticParticles.lua | 1 | 11273 | -- $Id: StaticParticles.lua 3345 2008-12-02 00:03:50Z jk $
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
local StaticParticles = {}
StaticParticles.__index = StaticParticles
local billShader,sizeUniform,frameUniform
local colormapUniform,colorsUniform = {},0
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
function StaticParticles.GetInfo()
return {
name = "StaticParticles",
backup = "", --// backup class, if this class doesn't work (old cards,ati's,etc.)
desc = "",
layer = 0, --// extreme simply z-ordering :x
--// gfx requirement
fbo = false,
shader = true,
rtt = false,
ctt = false,
}
end
StaticParticles.Default = {
particles = {},
dlist = 0,
--// visibility check
los = true,
airLos = true,
radar = false,
emitVector = {0,1,0},
pos = {0,0,0}, --// start pos
partpos = "0,0,0", --// particle relative start pos (can contain lua code!)
layer = 0,
life = 0,
lifeSpread = 0,
rot2Speed = 0, --// global effect rotation
size = 0,
sizeSpread = 0,
sizeGrowth = 0,
colormap = { {0, 0, 0, 0} }, --//max 12 entries
srcBlend = GL.ONE,
dstBlend = GL.ONE_MINUS_SRC_ALPHA,
alphaTest = 0, --FIXME
texture = '',
count = 1,
repeatEffect = false, --can be a number,too
}
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
--// speed ups
local abs = math.abs
local sqrt = math.sqrt
local rand = math.random
local twopi= 2*math.pi
local cos = math.cos
local sin = math.sin
local min = math.min
local spGetUnitLosState = Spring.GetUnitLosState
local spGetPositionLosState = Spring.GetPositionLosState
local spGetUnitViewPosition = Spring.GetUnitViewPosition
local spIsSphereInView = Spring.IsSphereInView
local spGetUnitRadius = Spring.GetUnitRadius
local spGetProjectilePosition = Spring.GetProjectilePosition
local glTexture = gl.Texture
local glBlending = gl.Blending
local glUniform = gl.Uniform
local glUniformInt = gl.UniformInt
local glPushMatrix = gl.PushMatrix
local glPopMatrix = gl.PopMatrix
local glTranslate = gl.Translate
local glCallList = gl.CallList
local glRotate = gl.Rotate
local glColor = gl.Color
local glBeginEnd = gl.BeginEnd
local GL_QUADS = GL.QUADS
local glMultiTexCoord= gl.MultiTexCoord
local glVertex = gl.Vertex
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
function StaticParticles:CreateParticleAttributes(partpos,n)
local life, pos, size;
size = rand()*self.sizeSpread
life = self.life + rand()*self.lifeSpread
local part = {size=self.size+size,life=life,i=n}
pos = { ProcessParamCode(partpos, part) }
return life, size,
pos[1],pos[2],pos[3];
end
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
local lasttexture = nil
function StaticParticles:BeginDraw()
gl.UseShader(billShader)
lasttexture = nil
end
function StaticParticles:EndDraw()
glTexture(false)
glBlending(GL.SRC_ALPHA, GL.ONE_MINUS_SRC_ALPHA)
gl.UseShader(0)
end
function StaticParticles:Draw()
if (lasttexture ~= self.texture) then
glTexture(self.texture)
lasttexture = self.texture
end
glBlending(self.srcBlend,self.dstBlend)
glUniform(sizeUniform,self.usize)
glUniform(frameUniform,self.frame)
glPushMatrix()
glTranslate(self.pos[1],self.pos[2],self.pos[3])
glRotate(90,self.emitVector[1],self.emitVector[2],self.emitVector[3])
glRotate(self.rot2Speed*self.frame,0,1,0)
glCallList(self.dlist)
glPopMatrix()
end
local function DrawParticleForDList(size,life,x,y,z,colors)
glMultiTexCoord(0,x,y,z,1.0)
glMultiTexCoord(1,size,colors/life)
glVertex(-0.5,-0.5,0,0)
glVertex( 0.5,-0.5,1,0)
glVertex( 0.5, 0.5,1,1)
glVertex(-0.5, 0.5,0,1)
end
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
function StaticParticles:Initialize()
billShader = gl.CreateShader({
vertex = [[
uniform float size;
uniform float frame;
uniform vec4 colormap[12];
uniform int colors;
varying vec2 texCoord;
void main()
{
#define pos gl_MultiTexCoord0
#define csize gl_MultiTexCoord1.x
#define clrslife gl_MultiTexCoord1.y
#define texcoord gl_Vertex.pq
#define billboardpos gl_Vertex.xy
#define pos gl_MultiTexCoord0
#define csize gl_MultiTexCoord1.x
#define clrslife gl_MultiTexCoord1.y
#define texcoord gl_Vertex.pq
#define billboardpos gl_Vertex.xy
float cpos = frame*clrslife;
int ipos1 = int(cpos);
float psize = csize + size;
if (ipos1>colors || psize<=0.0) {
// paste dead particles offscreen, this way we don't dump the fragment shader with it
const vec4 offscreen = vec4(-2000.0,-2000.0,-2000.0,-2000.0);
gl_Position = offscreen;
}else{
int ipos2 = ipos1+1; if (ipos2>colors) ipos2 = colors;
gl_FrontColor = mix(colormap[ipos1],colormap[ipos2],fract(cpos));
// calc vertex position
gl_Position = gl_ModelViewMatrix * pos;
// offset vertex from center of the polygon
gl_Position.xy += billboardpos * psize;
// end
gl_Position = gl_ProjectionMatrix * gl_Position;
texCoord = texcoord;
}
}
]],
fragment = [[
uniform sampler2D tex0;
varying vec2 texCoord;
void main()
{
gl_FragColor = texture2D(tex0,texCoord) * gl_Color;
}
]],
uniformInt = {
tex0 = 0,
},
uniform = {
frame = 0,
size = 0,
},
})
if (billShader==nil) then
print(PRIO_MAJOR,"LUPS->StaticParticles: Critical Shader Error: " ..gl.GetShaderLog())
return false
end
sizeUniform = gl.GetUniformLocation(billShader,"size")
frameUniform = gl.GetUniformLocation(billShader,"frame")
colorsUniform = gl.GetUniformLocation(billShader,"colors")
for i=1,12 do
colormapUniform[i] = gl.GetUniformLocation(billShader,"colormap["..(i-1).."]")
end
end
function StaticParticles:Finalize()
gl.DeleteShader(billShader)
end
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
function StaticParticles:Update(n)
self.frame = self.frame + n
self.usize = self.usize + n*self.sizeGrowth
end
-- used if repeatEffect=true;
function StaticParticles:ReInitialize()
self.usize = self.size
self.frame = 0
self.dieGameFrame = self.dieGameFrame + self.life + self.lifeSpread
end
function StaticParticles:CreateParticle()
local maxSpawnRadius = 0
self.ncolors = #self.colormap-1
local partposCode = ParseParamString(self.partpos)
self.dlist = gl.CreateList(function()
glUniformInt(colorsUniform, self.ncolors)
for i=1,min(self.ncolors+1,12) do
local color = self.colormap[i]
glUniform( colormapUniform[i] , color[1], color[2], color[3], color[4] )
end
gl.BeginEnd(GL.QUADS, function()
for i=1,self.count do
local life,size,x,y,z = self:CreateParticleAttributes(partposCode,i-1)
DrawParticleForDList(size,life,
x,y,z, -- relative start pos
self.ncolors)
local spawnDist = sqrt(x*x+y*y+z*z)
if (spawnDist>maxSpawnRadius) then maxSpawnRadius=spawnDist end
end
end)
end)
self.usize = self.size
self.frame = 0
self.firstGameFrame = Spring.GetGameFrame()
self.dieGameFrame = self.firstGameFrame + self.life + self.lifeSpread
--// visibility check vars
self.radius = self.size + self.sizeSpread + maxSpawnRadius + 100
self.sphereGrowth = self.sizeGrowth
end
function StaticParticles:Destroy()
for _,part in ipairs(self.particles) do
gl.DeleteList(part.dlist)
end
--gl.DeleteTexture(self.texture)
end
function StaticParticles:Visible()
local radius = self.radius +
self.frame*(self.sphereGrowth) --FIXME: frame is only updated on Update()
local posX,posY,posZ = self.pos[1],self.pos[2],self.pos[3]
local losState
if (self.unit and not self.worldspace) then
losState = (spGetUnitLosState(self.unit, LocalAllyTeamID) or {}).los or false
local ux,uy,uz = spGetUnitViewPosition(self.unit)
posX,posY,posZ = posX+ux,posY+uy,posZ+uz
radius = radius + spGetUnitRadius(self.unit)
elseif (self.projectile and not self.worldspace) then
local px,py,pz = spGetProjectilePosition(self.projectile)
posX,posY,posZ = posX+px,posY+py,posZ+pz
end
if (losState==nil) then
if (self.radar) then
losState = IsPosInRadar(posX,posY,posZ, LocalAllyTeamID)
end
if ((not losState) and self.airLos) then
losState = IsPosInAirLos(posX,posY,posZ, LocalAllyTeamID)
end
if ((not losState) and self.los) then
losState = IsPosInLos(posX,posY,posZ, LocalAllyTeamID)
end
end
return (losState)and(spIsSphereInView(posX,posY,posZ,radius))
end
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
function StaticParticles.Create(Options)
local newObject = MergeTable(Options, StaticParticles.Default)
setmetatable(newObject,StaticParticles) --// make handle lookup
newObject:CreateParticle()
return newObject
end
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
return StaticParticles | gpl-2.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/wearables/dress/dress_s18.lua | 3 | 4604 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_wearables_dress_dress_s18 = object_tangible_wearables_dress_shared_dress_s18:new {
playerRaces = { "object/creature/player/bothan_male.iff",
"object/creature/player/bothan_female.iff",
"object/creature/player/human_male.iff",
"object/creature/player/human_female.iff",
"object/creature/player/moncal_male.iff",
"object/creature/player/moncal_female.iff",
"object/creature/player/rodian_male.iff",
"object/creature/player/rodian_female.iff",
"object/creature/player/sullustan_male.iff",
"object/creature/player/sullustan_female.iff",
"object/creature/player/trandoshan_male.iff",
"object/creature/player/trandoshan_female.iff",
"object/creature/player/twilek_male.iff",
"object/creature/player/twilek_female.iff",
"object/creature/player/zabrak_male.iff",
"object/creature/player/zabrak_female.iff",
"object/mobile/vendor/aqualish_female.iff",
"object/mobile/vendor/aqualish_male.iff",
"object/mobile/vendor/bith_female.iff",
"object/mobile/vendor/bith_male.iff",
"object/mobile/vendor/bothan_female.iff",
"object/mobile/vendor/bothan_male.iff",
"object/mobile/vendor/devaronian_male.iff",
"object/mobile/vendor/gran_male.iff",
"object/mobile/vendor/human_female.iff",
"object/mobile/vendor/human_male.iff",
"object/mobile/vendor/ishi_tib_male.iff",
"object/mobile/vendor/moncal_female.iff",
"object/mobile/vendor/moncal_male.iff",
"object/mobile/vendor/nikto_male.iff",
"object/mobile/vendor/quarren_male.iff",
"object/mobile/vendor/rodian_female.iff",
"object/mobile/vendor/rodian_male.iff",
"object/mobile/vendor/sullustan_female.iff",
"object/mobile/vendor/sullustan_male.iff",
"object/mobile/vendor/trandoshan_female.iff",
"object/mobile/vendor/trandoshan_male.iff",
"object/mobile/vendor/twilek_female.iff",
"object/mobile/vendor/twilek_male.iff",
"object/mobile/vendor/weequay_male.iff",
"object/mobile/vendor/zabrak_female.iff",
"object/mobile/vendor/zabrak_male.iff" },
numberExperimentalProperties = {1, 1, 1, 1},
experimentalProperties = {"XX", "XX", "XX", "XX"},
experimentalWeights = {1, 1, 1, 1},
experimentalGroupTitles = {"null", "null", "null", "null"},
experimentalSubGroupTitles = {"null", "null", "sockets", "hitpoints"},
experimentalMin = {0, 0, 0, 1000},
experimentalMax = {0, 0, 0, 1000},
experimentalPrecision = {0, 0, 0, 0},
experimentalCombineType = {0, 0, 4, 4},
}
ObjectTemplates:addTemplate(object_tangible_wearables_dress_dress_s18, "object/tangible/wearables/dress/dress_s18.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/droid/component/data_storage_module_2.lua | 1 | 3348 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_droid_component_data_storage_module_2 = object_draft_schematic_droid_component_shared_data_storage_module_2:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Level 2 Droid Data Module",
craftingToolTab = 32, -- (See DraftSchematicObjectTemplate.h)
complexity = 17,
size = 2,
xpType = "crafting_droid_general",
xp = 50,
assemblySkill = "droid_assembly",
experimentingSkill = "droid_experimentation",
customizationSkill = "droid_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_droid_ingredients_n", "craft_droid_ingredients_n", "craft_droid_ingredients_n", "craft_droid_ingredients_n"},
ingredientTitleNames = {"module_frame", "contaminent_neutralization_medium", "thermal_shielding", "data_storage_matrix"},
ingredientSlotType = {0, 0, 0, 0},
resourceTypes = {"copper", "gas_inert", "ore", "metal"},
resourceQuantities = {9, 4, 4, 7},
contribution = {100, 100, 100, 100},
targetTemplate = "object/tangible/component/droid/data_storage_module_2.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_droid_component_data_storage_module_2, "object/draft_schematic/droid/component/data_storage_module_2.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/ship/yt1300.lua | 3 | 2132 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_ship_yt1300 = object_ship_shared_yt1300:new {
}
ObjectTemplates:addTemplate(object_ship_yt1300, "object/ship/yt1300.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/ship/spacestation_rebel.lua | 3 | 2180 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_ship_spacestation_rebel = object_ship_shared_spacestation_rebel:new {
}
ObjectTemplates:addTemplate(object_ship_spacestation_rebel, "object/ship/spacestation_rebel.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/loot/quest/schematic_apron_s01_quest_03.lua | 1 | 2588 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_loot_quest_schematic_apron_s01_quest_03 = object_tangible_loot_quest_shared_schematic_apron_s01_quest_03:new {
templateType = LOOTSCHEMATIC,
objectMenuComponent = "LootSchematicMenuComponent",
attributeListComponent = "LootSchematicAttributeListComponent",
requiredSkill = "crafting_tailor_field_03",
targetDraftSchematic = "object/draft_schematic/clothing/clothing_apron_field_01_quest_03.iff",
targetUseCount = 3
}
ObjectTemplates:addTemplate(object_tangible_loot_quest_schematic_apron_s01_quest_03, "object/tangible/loot/quest/schematic_apron_s01_quest_03.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/droid/droid_r3_advanced.lua | 1 | 3829 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_droid_droid_r3_advanced = object_draft_schematic_droid_shared_droid_r3_advanced:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Deed for: R3 Droid, Advanced Model",
craftingToolTab = 32, -- (See DraftSchematicObjectTemplate.h)
complexity = 45,
size = 1,
xpType = "crafting_droid_general",
xp = 560,
assemblySkill = "droid_assembly",
experimentingSkill = "droid_experimentation",
customizationSkill = "droid_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_droid_ingredients_n", "craft_droid_ingredients_n", "craft_droid_ingredients_n", "craft_droid_ingredients_n", "craft_droid_ingredients_n", "craft_droid_ingredients_n", "craft_droid_ingredients_n"},
ingredientTitleNames = {"old_shell_reinforcement", "upgrade_electronics_bay", "base_chassis", "general_droid_module_package", "general_droid_module_package2", "droid_defensive_module", "droid_defensive_module2"},
ingredientSlotType = {0, 0, 1, 3, 3, 3, 3},
resourceTypes = {"chemical", "chemical", "object/tangible/component/droid/shared_r3_droid_chassis.iff", "object/tangible/component/droid/shared_combat_socket_bank.iff", "object/tangible/component/droid/shared_combat_socket_bank.iff", "object/tangible/component/droid/shared_defensive_module_base.iff", "object/tangible/component/droid/shared_defensive_module_base.iff"},
resourceQuantities = {90, 190, 1, 1, 1, 1, 1},
contribution = {100, 100, 100, 100, 100, 100, 100},
targetTemplate = "object/tangible/deed/pet_deed/deed_r3_advanced_basic.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_droid_droid_r3_advanced, "object/draft_schematic/droid/droid_r3_advanced.iff")
| agpl-3.0 |
sprunk/Zero-K | units/jumpraid.lua | 1 | 5292 | unitDef = {
unitname = [[jumpraid]],
name = [[Pyro]],
description = [[Raider/Riot Jumper]],
acceleration = 0.4,
brakeRate = 1.2,
buildCostMetal = 220,
builder = false,
buildPic = [[jumpraid.png]],
canGuard = true,
canMove = true,
canPatrol = true,
category = [[LAND FIREPROOF]],
selectionVolumeOffsets = [[0 0 0]],
selectionVolumeScales = [[30 30 30]],
selectionVolumeType = [[ellipsoid]],
corpse = [[DEAD]],
customParams = {
canjump = 1,
jump_range = 400,
jump_speed = 6,
jump_reload = 10,
jump_from_midair = 1,
fireproof = [[1]],
stats_show_death_explosion = 1,
},
explodeAs = [[PYRO_DEATH]],
footprintX = 2,
footprintZ = 2,
iconType = [[jumpjetraider]],
idleAutoHeal = 5,
idleTime = 1800,
leaveTracks = true,
maxDamage = 620,
maxSlope = 36,
maxVelocity = 3,
maxWaterDepth = 22,
minCloakDistance = 75,
movementClass = [[KBOT2]],
noAutoFire = false,
noChaseCategory = [[FIXEDWING GUNSHIP SUB]],
objectName = [[m-5.s3o]],
script = [[jumpraid.lua]],
selfDestructAs = [[PYRO_DEATH]],
selfDestructCountdown = 5,
sfxtypes = {
explosiongenerators = {
[[custom:PILOT]],
[[custom:PILOT2]],
[[custom:RAIDMUZZLE]],
[[custom:VINDIBACK]],
},
},
sightDistance = 420,
trackOffset = 0,
trackStrength = 8,
trackStretch = 1,
trackType = [[ComTrack]],
trackWidth = 22,
turnRate = 1800,
upright = true,
workerTime = 0,
weapons = {
{
def = [[FLAMETHROWER]],
badTargetCategory = [[FIREPROOF]],
onlyTargetCategory = [[SWIM LAND SINK TURRET FLOAT SHIP HOVER GUNSHIP FIXEDWING]],
},
},
weaponDefs = {
FLAMETHROWER = {
name = [[Flamethrower]],
areaOfEffect = 64,
avoidGround = false,
avoidFeature = false,
avoidFriendly = true,
collideFeature = false,
collideGround = false,
coreThickness = 0,
craterBoost = 0,
craterMult = 0,
cegTag = [[flamer]],
customParams = {
flamethrower = [[1]],
setunitsonfire = "1",
burnchance = "0.4", -- Per-impact
burntime = [[450]],
light_camera_height = 2800,
light_color = [[0.6 0.39 0.18]],
light_radius = 260,
light_fade_time = 10,
light_beam_mult_frames = 5,
light_beam_mult = 5,
combatrange = 280,
},
damage = {
default = 8.5,
subs = 0.01,
},
duration = 0.01,
explosionGenerator = [[custom:SMOKE]],
fallOffRate = 1,
fireStarter = 100,
heightMod = 1,
impulseBoost = 0,
impulseFactor = 0,
intensity = 0.3,
interceptedByShieldType = 1,
noExplode = true,
noSelfDamage = true,
range = 260,
reloadtime = 0.133,
rgbColor = [[1 1 1]],
soundStart = [[weapon/flamethrower]],
soundTrigger = true,
texture1 = [[flame]],
thickness = 0,
tolerance = 5000,
turret = true,
weaponType = [[LaserCannon]],
weaponVelocity = 800,
},
PYRO_DEATH = {
name = [[Napalm Blast]],
areaofeffect = 256,
craterboost = 1,
cratermult = 3.5,
customparams = {
setunitsonfire = "1",
burnchance = "1",
burntime = 60,
area_damage = 1,
area_damage_radius = 128,
area_damage_dps = 20,
area_damage_duration = 13.3,
},
damage = {
default = 50,
},
edgeeffectiveness = 0.5,
explosionGenerator = [[custom:napalm_pyro]],
impulseboost = 0,
impulsefactor = 0,
soundhit = [[explosion/ex_med3]],
},
},
featureDefs = {
DEAD = {
blocking = false,
featureDead = [[HEAP]],
footprintX = 2,
footprintZ = 2,
object = [[m-5_dead.s3o]],
},
HEAP = {
blocking = false,
footprintX = 2,
footprintZ = 2,
object = [[debris2x2c.s3o]],
},
},
}
return lowerkeys({ jumpraid = unitDef })
| gpl-2.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/crafted/reactor/objects.lua | 3 | 56197 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
--which carries forward this exception.
object_tangible_ship_crafted_reactor_shared_advanced_fusion_core = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_advanced_fusion_core.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:advanced_fusion_core",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:advanced_fusion_core",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 2957310385,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_subcomponent_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_advanced_fusion_core, "object/tangible/ship/crafted/reactor/shared_advanced_fusion_core.iff")
object_tangible_ship_crafted_reactor_shared_advanced_power_distributor = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_advanced_power_distributor.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:advanced_power_distributor",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:advanced_power_distributor",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 4065301062,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_subcomponent_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_advanced_power_distributor, "object/tangible/ship/crafted/reactor/shared_advanced_power_distributor.iff")
object_tangible_ship_crafted_reactor_shared_base_reactor = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_base_reactor.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/cmp_xwing_cowl_neg_s02.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {"cert_ordnance_level1"},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@base_reactor:base",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@base_reactor:base",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 4073763603,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_component_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_base_reactor, "object/tangible/ship/crafted/reactor/shared_base_reactor.iff")
object_tangible_ship_crafted_reactor_shared_base_reactor_subcomponent = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:base_reactor_subcomponent",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:base_reactor_subcomponent",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 2892822392,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_subcomponent_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_base_reactor_subcomponent, "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent.iff")
object_tangible_ship_crafted_reactor_shared_base_reactor_subcomponent_mk1 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk1.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:base_reactor_subcomponent_mk1",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:base_reactor_subcomponent_mk1",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3936392569,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_subcomponent_base.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk5.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk4.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk3.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk2.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_base_reactor_subcomponent_mk1, "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk1.iff")
object_tangible_ship_crafted_reactor_shared_base_reactor_subcomponent_mk2 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk2.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:base_reactor_subcomponent_mk2",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:base_reactor_subcomponent_mk2",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 834092526,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_subcomponent_base.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk5.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk4.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk3.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_base_reactor_subcomponent_mk2, "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk2.iff")
object_tangible_ship_crafted_reactor_shared_base_reactor_subcomponent_mk3 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk3.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:base_reactor_subcomponent_mk3",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:base_reactor_subcomponent_mk3",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 2025478755,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_subcomponent_base.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk5.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk4.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_base_reactor_subcomponent_mk3, "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk3.iff")
object_tangible_ship_crafted_reactor_shared_base_reactor_subcomponent_mk4 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk4.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:base_reactor_subcomponent_mk4",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:base_reactor_subcomponent_mk4",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 2203677047,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_subcomponent_base.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk5.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_base_reactor_subcomponent_mk4, "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk4.iff")
object_tangible_ship_crafted_reactor_shared_base_reactor_subcomponent_mk5 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk5.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:base_reactor_subcomponent_mk5",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:base_reactor_subcomponent_mk5",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3394508538,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_subcomponent_base.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_base_reactor_subcomponent_mk5, "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk5.iff")
object_tangible_ship_crafted_reactor_shared_basic_reactor = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_basic_reactor.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/cmp_xwing_cowl_neg_s02.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {"cert_ordnance_level1"},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_n:base_reactor",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:base_reactor",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 1900869763,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_component_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_basic_reactor, "object/tangible/ship/crafted/reactor/shared_basic_reactor.iff")
object_tangible_ship_crafted_reactor_shared_fusion_reactor_mk1 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_fusion_reactor_mk1.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {"cert_ordnance_level1"},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:fusion_reactor_mk1",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:fusion_reactor_mk1",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3172827767,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_component_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_fusion_reactor_mk1, "object/tangible/ship/crafted/reactor/shared_fusion_reactor_mk1.iff")
object_tangible_ship_crafted_reactor_shared_fusion_reactor_mk2 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_fusion_reactor_mk2.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {"cert_ordnance_level3"},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:fusion_reactor_mk2",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:fusion_reactor_mk2",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 1711942368,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_component_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_fusion_reactor_mk2, "object/tangible/ship/crafted/reactor/shared_fusion_reactor_mk2.iff")
object_tangible_ship_crafted_reactor_shared_fusion_reactor_mk3 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_fusion_reactor_mk3.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {"cert_ordnance_level5"},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:fusion_reactor_mk3",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:fusion_reactor_mk3",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 789007725,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_component_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_fusion_reactor_mk3, "object/tangible/ship/crafted/reactor/shared_fusion_reactor_mk3.iff")
object_tangible_ship_crafted_reactor_shared_fusion_reactor_mk4 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_fusion_reactor_mk4.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {"cert_ordnance_level7"},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:fusion_reactor_mk4",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:fusion_reactor_mk4",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3571738233,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_component_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_fusion_reactor_mk4, "object/tangible/ship/crafted/reactor/shared_fusion_reactor_mk4.iff")
object_tangible_ship_crafted_reactor_shared_fusion_reactor_mk5 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_fusion_reactor_mk5.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {"cert_ordnance_level9"},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:fusion_reactor_mk5",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:fusion_reactor_mk5",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 2649293300,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_component_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_fusion_reactor_mk5, "object/tangible/ship/crafted/reactor/shared_fusion_reactor_mk5.iff")
object_tangible_ship_crafted_reactor_shared_reactor_limiter_mk1 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_reactor_limiter_mk1.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:reactor_limiter_mk1",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:reactor_limiter_mk1",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 118151162,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_subcomponent_base.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk5.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk4.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk3.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk2.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk1.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_reactor_limiter_mk1, "object/tangible/ship/crafted/reactor/shared_reactor_limiter_mk1.iff")
object_tangible_ship_crafted_reactor_shared_reactor_limiter_mk2 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_reactor_limiter_mk2.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:reactor_limiter_mk2",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:reactor_limiter_mk2",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3692920685,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_subcomponent_base.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk5.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk4.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk3.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk2.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_reactor_limiter_mk2, "object/tangible/ship/crafted/reactor/shared_reactor_limiter_mk2.iff")
object_tangible_ship_crafted_reactor_shared_reactor_limiter_mk3 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_reactor_limiter_mk3.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:reactor_limiter_mk3",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:reactor_limiter_mk3",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 2500860128,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_subcomponent_base.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk5.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk4.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk3.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_reactor_limiter_mk3, "object/tangible/ship/crafted/reactor/shared_reactor_limiter_mk3.iff")
object_tangible_ship_crafted_reactor_shared_reactor_limiter_mk4 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_reactor_limiter_mk4.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:reactor_limiter_mk4",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:reactor_limiter_mk4",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 1861432308,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_subcomponent_base.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk5.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk4.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_reactor_limiter_mk4, "object/tangible/ship/crafted/reactor/shared_reactor_limiter_mk4.iff")
object_tangible_ship_crafted_reactor_shared_reactor_limiter_mk5 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_reactor_limiter_mk5.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:reactor_limiter_mk5",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:reactor_limiter_mk5",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 670979193,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_subcomponent_base.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk5.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_reactor_limiter_mk5, "object/tangible/ship/crafted/reactor/shared_reactor_limiter_mk5.iff")
object_tangible_ship_crafted_reactor_shared_reactor_overcharger_mk1 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_reactor_overcharger_mk1.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:reactor_overcharger_mk1",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:reactor_overcharger_mk1",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 1124351052,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_subcomponent_base.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk5.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk4.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk3.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk2.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk1.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_reactor_overcharger_mk1, "object/tangible/ship/crafted/reactor/shared_reactor_overcharger_mk1.iff")
object_tangible_ship_crafted_reactor_shared_reactor_overcharger_mk2 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_reactor_overcharger_mk2.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:reactor_overcharger_mk2",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:reactor_overcharger_mk2",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 2551420123,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_subcomponent_base.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk5.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk4.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk3.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk2.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_reactor_overcharger_mk2, "object/tangible/ship/crafted/reactor/shared_reactor_overcharger_mk2.iff")
object_tangible_ship_crafted_reactor_shared_reactor_overcharger_mk3 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_reactor_overcharger_mk3.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:reactor_overcharger_mk3",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:reactor_overcharger_mk3",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3508466518,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_subcomponent_base.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk5.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk4.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk3.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_reactor_overcharger_mk3, "object/tangible/ship/crafted/reactor/shared_reactor_overcharger_mk3.iff")
object_tangible_ship_crafted_reactor_shared_reactor_overcharger_mk4 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_reactor_overcharger_mk4.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:reactor_overcharger_mk4",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:reactor_overcharger_mk4",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 721279042,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_subcomponent_base.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk5.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk4.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_reactor_overcharger_mk4, "object/tangible/ship/crafted/reactor/shared_reactor_overcharger_mk4.iff")
object_tangible_ship_crafted_reactor_shared_reactor_overcharger_mk5 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_reactor_overcharger_mk5.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:reactor_overcharger_mk5",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:reactor_overcharger_mk5",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 1676722127,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_subcomponent_base.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent.iff", "object/tangible/ship/crafted/reactor/shared_base_reactor_subcomponent_mk5.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_reactor_overcharger_mk5, "object/tangible/ship/crafted/reactor/shared_reactor_overcharger_mk5.iff")
object_tangible_ship_crafted_reactor_shared_standard_fusion_core = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_standard_fusion_core.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:standard_fusion_core",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:standard_fusion_core",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3532622984,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_subcomponent_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_standard_fusion_core, "object/tangible/ship/crafted/reactor/shared_standard_fusion_core.iff")
object_tangible_ship_crafted_reactor_shared_standard_power_distributor = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/ship/crafted/reactor/shared_standard_power_distributor.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/ship_component_reactor_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1073741825,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_crafting_d:standard_power_distributor",
gameObjectType = 1073741825,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_crafting_n:standard_power_distributor",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 2827748660,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/components/base/shared_ship_subcomponent_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_ship_crafted_reactor_shared_standard_power_distributor, "object/tangible/ship/crafted/reactor/shared_standard_power_distributor.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/loot/dungeon/corellian_corvette/rebel_assassin_filler02.lua | 2 | 2357 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_loot_dungeon_corellian_corvette_rebel_assassin_filler02 = object_tangible_loot_dungeon_corellian_corvette_shared_rebel_assassin_filler02:new {
noTrade = 1,
}
ObjectTemplates:addTemplate(object_tangible_loot_dungeon_corellian_corvette_rebel_assassin_filler02, "object/tangible/loot/dungeon/corellian_corvette/rebel_assassin_filler02.iff")
| agpl-3.0 |
sprunk/Zero-K | LuaUI/Widgets/chili/Controls/label.lua | 8 | 2940 | --// =============================================================================
--- Label module
--- Label fields.
-- Inherits from Control.
-- @see control.Control
-- @table Label
-- @string[opt = "left"] align alignment
-- @string[opt = "linecenter"] valign vertical alignment
-- @string[opt = "no text"] caption text to be displayed
Label = Control:Inherit{
classname = "label",
defaultWidth = 70,
defaultHeight = 20,
padding = {0, 0, 0, 0},
autosize = true,
autoObeyLineHeight = true, --// (needs autosize) if true, autosize will obey the lineHeight (- > texts with the same line count will have the same height)
align = "left",
valign = "linecenter", --// usefull too "ascender"
caption = "no text",
noFont = false,
}
local this = Label
local inherited = this.inherited
--// =============================================================================
function Label:New(obj)
obj = inherited.New(self, obj)
obj:SetCaption(obj.caption)
return obj
end
--// =============================================================================
--- Set the label caption
-- @string newcaption new caption to be set
function Label:SetCaption(newcaption)
if (self.caption == newcaption) then
return
end
self.caption = newcaption
self:UpdateLayout()
self:Invalidate()
end
function Label:UpdateLayout()
local font = self.font
if (self.autosize) then
self._caption = self.caption
local w = font:GetTextWidth(self.caption);
local h, d, numLines = font:GetTextHeight(self.caption);
h = h + 1
if (self.autoObeyLineHeight) then
h = math.ceil(numLines * font:GetLineHeight())
else
h = math.ceil(h-d)
end
if font.shadow then
w = w + 2 + font.size * 0.1
h = h + 2 + font.size * 0.1
elseif font.outline then
w = w + 2 + font.size * font.outlineWidth
h = h + 2 + font.size * font.outlineWidth
end
local x = self.x
local y = self.y
if self.valign == "center" then
y = math.round(y + (self.height - h) * 0.5)
elseif self.valign == "bottom" then
y = y + self.height - h
elseif self.valign == "top" then
else
end
if self.align == "left" then
elseif self.align == "right" then
x = x + self.width - w
elseif self.align == "center" then
x = math.round(x + (self.width - w) * 0.5)
end
self:_UpdateConstraints(x, y, w, h)
else
self._caption = font:WrapText(self.caption, self.width, self.height)
end
end
--// =============================================================================
function Label:DrawControl()
local font = self.font
font:DrawInBox(self._caption, 0, 0, self.width, self.height, self.align, self.valign)
if (self.debug) then
gl.Color(0, 1, 0, 0.5)
gl.PolygonMode(GL.FRONT_AND_BACK, GL.LINE)
gl.LineWidth(2)
gl.Rect(0, 0, self.width, self.height)
gl.LineWidth(1)
gl.PolygonMode(GL.FRONT_AND_BACK, GL.FILL)
end
end
--// =============================================================================
| gpl-2.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/components/weapon/wpn_taim_kx9.lua | 3 | 2264 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_ship_components_weapon_wpn_taim_kx9 = object_tangible_ship_components_weapon_shared_wpn_taim_kx9:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_components_weapon_wpn_taim_kx9, "object/tangible/ship/components/weapon/wpn_taim_kx9.iff")
| agpl-3.0 |
sousoux/luvit | tests/test-dns.lua | 2 | 3742 | --[[
Copyright 2012 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS-IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--]]
require("helper")
local dns = require('dns')
local net = require('net')
local resolveCbHappened
dns.resolve4('luvit.io')
dns.resolve6('luvit.io')
dns.reverse('8.8.8.8')
dns.resolveMx('luvit.io')
dns.resolveNs('luvit.io')
dns.resolveSrv('_jabber._tcp.google.com')
dns.resolveCname('api.luvit.io')
dns.resolveTxt('google.com')
dns.resolve4('luvit.io', function(err, addresses)
resolveCbHappened = 1
assert(type(err) == 'nil')
assert(type(addresses) == 'table')
assert(#addresses > 0)
end)
dns.resolve6('ipv6.google.com', function(err, addresses)
assert(type(err) == 'nil')
assert(type(addresses) == 'table')
assert(#addresses > 0)
end)
dns.lookup('google.com', function(err, addresses)
assert(type(err) == 'nil')
assert(type(addresses) == 'string')
end)
dns.reverse('8.8.8.8', function(err, addresses)
assert(type(err) == 'nil')
assert(type(addresses) == 'table')
for i=1,#addresses do
assert(type(addresses[i]) == 'string')
end
end)
dns.reverse('2001:4860:4860::8888', function(err, addresses)
assert(type(err) == 'nil')
assert(type(addresses) == 'table')
for i=1,#addresses do
assert(type(addresses[i]) == 'string')
end
end)
dns.reverse('bogus ip', function(err, addresses)
assert(type(err) ~= 'nil')
assert(type(addresses) == 'nil')
end)
dns.resolveMx('rackspace.com', function(err, addresses)
assert(type(err) == 'nil')
assert(type(addresses) == 'table')
for i=1,#addresses do
assert(addresses[i].priority)
assert(addresses[i].exchange)
end
end)
dns.resolveNs('luvit.io', function(err, addresses)
assert(type(err) == 'nil')
assert(type(addresses) == 'table')
for i=1,#addresses do
assert(type(addresses[i]) == 'string')
end
end)
dns.resolveSrv('_jabber._tcp.google.com', function(err, addresses)
assert(type(err) == 'nil')
assert(type(addresses) == 'table')
for i=1,#addresses do
assert(type(addresses[i].name) == 'string')
assert(type(addresses[i].port) == 'number')
assert(type(addresses[i].priority) == 'number')
assert(type(addresses[i].weight) == 'number')
end
end)
dns.resolveCname('ghs.google.com', function(err, names)
assert(type(err) == 'nil')
assert(type(names) == 'table')
assert(#names == 1)
end)
dns.resolveTxt('google.com', function(err, records)
assert(type(err) == 'nil')
assert(type(records) == 'table')
for i=1,#records do
assert(type(records[i]) == 'string')
end
end)
dns.lookup('::1', function(err, ip, family)
assert(type(err) == 'nil')
assert(type(ip) == 'string')
assert(type(family) == 'number')
end)
process:on('exit', function()
assert(resolveCbHappened ~= nil)
end)
assert(net.isIP('127.0.0.1') == 4)
assert(net.isIP('::1') == 6)
assert(net.isIP('bogus_ip') == 0)
assert(net.isIPv4('127.0.0.1') == 4)
assert(net.isIPv4('::1') == 0)
assert(net.isIPv6('127.0.0.1') == 0)
assert(net.isIPv6('::1') == 6)
-- Test the deprecated function prototypes
assert(dns.isIP('127.0.0.1') == 4)
assert(dns.isIP('::1') == 6)
assert(dns.isIP('bogus_ip') == 0)
assert(dns.isIPv4('127.0.0.1') == 4)
assert(dns.isIPv4('::1') == 0)
assert(dns.isIPv6('127.0.0.1') == 0)
assert(dns.isIPv6('::1') == 6)
| apache-2.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/clothing/clothing_bandolier_field_03.lua | 1 | 3564 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_clothing_clothing_bandolier_field_03 = object_draft_schematic_clothing_shared_clothing_bandolier_field_03:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Two-Strap Bandolier",
craftingToolTab = 8, -- (See DraftSchematicObjectTemplate.h)
complexity = 20,
size = 2,
xpType = "crafting_clothing_general",
xp = 110,
assemblySkill = "clothing_assembly",
experimentingSkill = "clothing_experimentation",
customizationSkill = "clothing_customization",
customizationOptions = {2},
customizationStringNames = {"/private/index_color_1"},
customizationDefaults = {0},
ingredientTemplateNames = {"craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n"},
ingredientTitleNames = {"utility_pocket", "load_bearing_harness", "steel_interstructure", "steel_crossframe", "reinforcement"},
ingredientSlotType = {1, 0, 0, 0, 1},
resourceTypes = {"object/tangible/component/clothing/shared_cargo_pocket.iff", "fiberplast", "metal", "metal", "object/tangible/component/clothing/shared_reinforced_fiber_panels.iff"},
resourceQuantities = {1, 20, 15, 10, 1},
contribution = {100, 100, 100, 100, 100},
targetTemplate = "object/tangible/wearables/bandolier/bandolier_s03.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_clothing_clothing_bandolier_field_03, "object/draft_schematic/clothing/clothing_bandolier_field_03.iff")
| agpl-3.0 |
telecerner/fuker-bot | libs/serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
local keyword, globals, G = {}, {}, (_G or _ENV)
for _,k in ipairs({'and', 'break', 'do', 'else', 'elseif', 'end', 'false',
'for', 'function', 'goto', 'if', 'in', 'local', 'nil', 'not', 'or', 'repeat',
'return', 'then', 'true', 'until', 'while'}) do keyword[k] = true end
for k,v in pairs(G) do globals[v] = k end -- build func to name mapping
for _,g in ipairs({'coroutine', 'debug', 'io', 'math', 'string', 'table', 'os'}) do
for k,v in pairs(G[g] or {}) do globals[v] = g..'.'..k end end
local function s(t, opts)
local name, indent, fatal, maxnum = opts.name, opts.indent, opts.fatal, opts.maxnum
local sparse, custom, huge = opts.sparse, opts.custom, not opts.nohuge
local space, maxl = (opts.compact and '' or ' '), (opts.maxlevel or math.huge)
local iname, comm = '_'..(name or ''), opts.comment and (tonumber(opts.comment) or math.huge)
local seen, sref, syms, symn = {}, {'local '..iname..'={}'}, {}, 0
local function gensym(val) return '_'..(tostring(tostring(val)):gsub("[^%w]",""):gsub("(%d%w+)",
-- tostring(val) is needed because __tostring may return a non-string value
function(s) if not syms[s] then symn = symn+1; syms[s] = symn end return tostring(syms[s]) end)) end
local function safestr(s) return type(s) == "number" and tostring(huge and snum[tostring(s)] or s)
or type(s) ~= "string" and tostring(s) -- escape NEWLINE/010 and EOF/026
or ("%q"):format(s):gsub("\010","n"):gsub("\026","\\026") end
local function comment(s,l) return comm and (l or 0) < comm and ' --[['..tostring(s)..']]' or '' end
local function globerr(s,l) return globals[s] and globals[s]..comment(s,l) or not fatal
and safestr(select(2, pcall(tostring, s))) or error("Can't serialize "..tostring(s)) end
local function safename(path, name) -- generates foo.bar, foo[3], or foo['b a r']
local n = name == nil and '' or name
local plain = type(n) == "string" and n:match("^[%l%u_][%w_]*$") and not keyword[n]
local safe = plain and n or '['..safestr(n)..']'
return (path or '')..(plain and path and '.' or '')..safe, safe end
local alphanumsort = type(opts.sortkeys) == 'function' and opts.sortkeys or function(k, o, n) -- k=keys, o=originaltable, n=padding
local maxn, to = tonumber(n) or 12, {number = 'a', string = 'b'}
local function padnum(d) return ("%0"..tostring(maxn).."d"):format(tonumber(d)) end
table.sort(k, function(a,b)
-- sort numeric keys first: k[key] is not nil for numerical keys
return (k[a] ~= nil and 0 or to[type(a)] or 'z')..(tostring(a):gsub("%d+",padnum))
< (k[b] ~= nil and 0 or to[type(b)] or 'z')..(tostring(b):gsub("%d+",padnum)) end) end
local function val2str(t, name, indent, insref, path, plainindex, level)
local ttype, level, mt = type(t), (level or 0), getmetatable(t)
local spath, sname = safename(path, name)
local tag = plainindex and
((type(name) == "number") and '' or name..space..'='..space) or
(name ~= nil and sname..space..'='..space or '')
if seen[t] then -- already seen this element
sref[#sref+1] = spath..space..'='..space..seen[t]
return tag..'nil'..comment('ref', level) end
if type(mt) == 'table' and (mt.__serialize or mt.__tostring) then -- knows how to serialize itself
seen[t] = insref or spath
if mt.__serialize then t = mt.__serialize(t) else t = tostring(t) end
ttype = type(t) end -- new value falls through to be serialized
if ttype == "table" then
if level >= maxl then return tag..'{}'..comment('max', level) end
seen[t] = insref or spath
if next(t) == nil then return tag..'{}'..comment(t, level) end -- table empty
local maxn, o, out = math.min(#t, maxnum or #t), {}, {}
for key = 1, maxn do o[key] = key end
if not maxnum or #o < maxnum then
local n = #o -- n = n + 1; o[n] is much faster than o[#o+1] on large tables
for key in pairs(t) do if o[key] ~= key then n = n + 1; o[n] = key end end end
if maxnum and #o > maxnum then o[maxnum+1] = nil end
if opts.sortkeys and #o > maxn then alphanumsort(o, t, opts.sortkeys) end
local sparse = sparse and #o > maxn -- disable sparsness if only numeric keys (shorter output)
for n, key in ipairs(o) do
local value, ktype, plainindex = t[key], type(key), n <= maxn and not sparse
if opts.valignore and opts.valignore[value] -- skip ignored values; do nothing
or opts.keyallow and not opts.keyallow[key]
or opts.valtypeignore and opts.valtypeignore[type(value)] -- skipping ignored value types
or sparse and value == nil then -- skipping nils; do nothing
elseif ktype == 'table' or ktype == 'function' or badtype[ktype] then
if not seen[key] and not globals[key] then
sref[#sref+1] = 'placeholder'
local sname = safename(iname, gensym(key)) -- iname is table for local variables
sref[#sref] = val2str(key,sname,indent,sname,iname,true) end
sref[#sref+1] = 'placeholder'
local path = seen[t]..'['..tostring(seen[key] or globals[key] or gensym(key))..']'
sref[#sref] = path..space..'='..space..tostring(seen[value] or val2str(value,nil,indent,path))
else
out[#out+1] = val2str(value,key,indent,insref,seen[t],plainindex,level+1)
end
end
local prefix = string.rep(indent or '', level)
local head = indent and '{\n'..prefix..indent or '{'
local body = table.concat(out, ','..(indent and '\n'..prefix..indent or space))
local tail = indent and "\n"..prefix..'}' or '}'
return (custom and custom(tag,head,body,tail) or tag..head..body..tail)..comment(t, level)
elseif badtype[ttype] then
seen[t] = insref or spath
return tag..globerr(t, level)
elseif ttype == 'function' then
seen[t] = insref or spath
local ok, res = pcall(string.dump, t)
local func = ok and ((opts.nocode and "function() --[[..skipped..]] end" or
"((loadstring or load)("..safestr(res)..",'@serialized'))")..comment(t, level))
return tag..(func or globerr(t, level))
else return tag..safestr(t) end -- handle all other types
end
local sepr = indent and "\n" or ";"..space
local body = val2str(t, name, indent) -- this call also populates sref
local tail = #sref>1 and table.concat(sref, sepr)..sepr or ''
local warn = opts.comment and #sref>1 and space.."--[[incomplete output with shared/self-references skipped]]" or ''
return not name and body..warn or "do local "..body..sepr..tail.."return "..name..sepr.."end"
end
local function deserialize(data, opts)
local env = (opts and opts.safe == false) and G
or setmetatable({}, {
__index = function(t,k) return t end,
__call = function(t,...) error("cannot call functions") end
})
local f, res = (loadstring or load)('return '..data, nil, nil, env)
if not f then f, res = (loadstring or load)(data, nil, nil, env) end
if not f then return f, res end
if setfenv then setfenv(f, env) end
return pcall(f)
end
local function merge(a, b) if b then for k,v in pairs(b) do a[k] = v end end; return a; end
return { _NAME = n, _COPYRIGHT = c, _DESCRIPTION = d, _VERSION = v, serialize = s,
load = deserialize,
dump = function(a, opts) return s(a, merge({name = '_', compact = true, sparse = true}, opts)) end,
line = function(a, opts) return s(a, merge({sortkeys = true, comment = true}, opts)) end,
block = function(a, opts) return s(a, merge({indent = ' ', sortkeys = true, comment = true}, opts)) end }
| gpl-2.0 |
motoschifo/mame | 3rdparty/genie/tests/actions/vstudio/sln2005/dependencies.lua | 47 | 1320 | --
-- tests/actions/vstudio/sln2005/dependencies.lua
-- Validate generation of Visual Studio 2005+ solution project dependencies.
-- Copyright (c) 2009-2011 Jason Perkins and the Premake project
--
T.vstudio_sln2005_dependencies = { }
local suite = T.vstudio_sln2005_dependencies
local sln2005 = premake.vstudio.sln2005
--
-- Setup
--
local sln, prj1, prj2
function suite.setup()
_ACTION = "vs2005"
sln, prj1 = test.createsolution()
uuid "AE61726D-187C-E440-BD07-2556188A6565"
prj2 = test.createproject(sln)
uuid "2151E83B-997F-4A9D-955D-380157E88C31"
links "MyProject"
end
local function prepare(language)
prj1.language = language
prj2.language = language
premake.bake.buildconfigs()
prj1 = premake.solution.getproject(sln, 1)
prj2 = premake.solution.getproject(sln, 2)
sln2005.projectdependencies(prj2)
end
--
-- Tests
--
function suite.On2005_Cpp()
prepare("C++")
test.capture [[
ProjectSection(ProjectDependencies) = postProject
{AE61726D-187C-E440-BD07-2556188A6565} = {AE61726D-187C-E440-BD07-2556188A6565}
EndProjectSection
]]
end
function suite.On2005_Cs()
prepare("C#")
test.capture [[
ProjectSection(ProjectDependencies) = postProject
{AE61726D-187C-E440-BD07-2556188A6565} = {AE61726D-187C-E440-BD07-2556188A6565}
EndProjectSection
]]
end
| gpl-2.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/clothing/clothing_armor_ubese_boots.lua | 1 | 3951 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_clothing_clothing_armor_ubese_boots = object_draft_schematic_clothing_shared_clothing_armor_ubese_boots:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Ubese Armor Boots",
craftingToolTab = 2, -- (See DraftSchematicObjectTemplate.h)
complexity = 35,
size = 4,
xpType = "crafting_clothing_armor",
xp = 270,
assemblySkill = "armor_assembly",
experimentingSkill = "armor_experimentation",
customizationSkill = "armor_customization",
customizationOptions = {34, 2},
customizationStringNames = {"/private/index_color_0", "/private/index_color_1"},
customizationDefaults = {0, 0},
ingredientTemplateNames = {"craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n"},
ingredientTitleNames = {"auxilary_coverage", "body", "liner", "hardware_and_attachments", "binding_and_reinforcement", "padding", "armor", "load_bearing_harness", "reinforcement"},
ingredientSlotType = {0, 0, 0, 0, 0, 0, 1, 1, 1},
resourceTypes = {"iron", "steel", "hide_leathery", "steel_neutronium", "petrochem_inert_polymer", "hide_wooly", "object/tangible/component/armor/shared_armor_segment_composite.iff", "object/tangible/component/clothing/shared_fiberplast_panel.iff", "object/tangible/component/clothing/shared_reinforced_fiber_panels.iff"},
resourceQuantities = {30, 30, 30, 15, 15, 15, 1, 1, 1},
contribution = {100, 100, 100, 100, 100, 100, 100, 100, 100},
targetTemplate = "object/tangible/wearables/armor/ubese/armor_ubese_boots.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_clothing_clothing_armor_ubese_boots, "object/draft_schematic/clothing/clothing_armor_ubese_boots.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/component/item/electronic_power_conditioner.lua | 3 | 2743 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_component_item_electronic_power_conditioner = object_tangible_component_item_shared_electronic_power_conditioner:new {
numberExperimentalProperties = {1, 1, 1, 1},
experimentalProperties = {"XX", "XX", "UT", "OQ"},
experimentalWeights = {1, 1, 1, 1},
experimentalGroupTitles = {"null", "null", "exp_durability", "exp_effectiveness"},
experimentalSubGroupTitles = {"null", "null", "hitpoints", "usemodifier"},
experimentalMin = {0, 0, 100, -5},
experimentalMax = {0, 0, 150, 5},
experimentalPrecision = {0, 0, 0, 0},
experimentalCombineType = {0, 0, 4, 1},
}
ObjectTemplates:addTemplate(object_tangible_component_item_electronic_power_conditioner, "object/tangible/component/item/electronic_power_conditioner.iff")
| agpl-3.0 |
AHXR/Dreamstride-YGOPro- | script/c90000006.lua | 1 | 1868 | --Dreamstride - Unconscious Beast
function c90000006.initial_effect(c)
--revive
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(90000006,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_GRAVE)
e1:SetCost(c90000006.cost)
e1:SetTarget(c90000006.target)
e1:SetOperation(c90000006.operation)
c:RegisterEffect(e1)
end
----------------------------------------------------------------------------
function c90000006.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() end
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end
function c90000006.filter(c,e,tp)
return c:IsRace(RACE_FAIRY) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c90000006.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c90000006.filter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c90000006.filter,tp,LOCATION_GRAVE,0,1,e:GetHandler(),e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c90000006.filter,tp,LOCATION_GRAVE,0,1,1,e:GetHandler(),e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end
function c90000006.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then
Duel.SpecialSummonComplete()
-- Cannot special summon for thew rest of the turn.
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e3:SetReset(RESET_PHASE+PHASE_END)
e3:SetTargetRange(1,0)
Duel.RegisterEffect(e3,tp)
end
end | gpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/lair/base/poi_all_lair_garbage_large_fog_green.lua | 1 | 2351 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_lair_base_poi_all_lair_garbage_large_fog_green = object_tangible_lair_base_shared_poi_all_lair_garbage_large_fog_green:new {
objectMenuComponent = "LairMenuComponent",
}
ObjectTemplates:addTemplate(object_tangible_lair_base_poi_all_lair_garbage_large_fog_green, "object/tangible/lair/base/poi_all_lair_garbage_large_fog_green.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/lair/blurrg/lair_blurrg_forest.lua | 1 | 2287 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_lair_blurrg_lair_blurrg_forest = object_tangible_lair_blurrg_shared_lair_blurrg_forest:new {
objectMenuComponent = "LairMenuComponent",
}
ObjectTemplates:addTemplate(object_tangible_lair_blurrg_lair_blurrg_forest, "object/tangible/lair/blurrg/lair_blurrg_forest.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/structure/general/poi_tato_farm_64x64_s01.lua | 3 | 2280 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_structure_general_poi_tato_farm_64x64_s01 = object_static_structure_general_shared_poi_tato_farm_64x64_s01:new {
}
ObjectTemplates:addTemplate(object_static_structure_general_poi_tato_farm_64x64_s01, "object/static/structure/general/poi_tato_farm_64x64_s01.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/faction/rebel/fbase_rebel_rifleman_extreme.lua | 1 | 1676 | fbase_rebel_rifleman_extreme = Creature:new {
objectName = "@mob/creature_names:fbase_rebel_rifleman_extreme",
randomNameType = NAME_GENERIC,
randomNameTag = true,
socialGroup = "rebel",
faction = "rebel",
level = 152,
chanceHit = 6.2,
damageMin = 905,
damageMax = 1520,
baseXp = 15200,
baseHAM = 70000,
baseHAMmax = 109000,
armor = 2,
resists = {30,30,30,130,30,130,-1,-1,-1},
meatType = "",
meatAmount = 0,
hideType = "",
hideAmount = 0,
boneType = "",
boneAmount = 0,
milk = 0,
tamingChance = 0,
ferocity = 0,
pvpBitmask = ATTACKABLE,
creatureBitmask = PACK,
optionsBitmask = AIENABLED,
diet = HERBIVORE,
templates = {
"object/mobile/dressed_rebel_trooper_bith_m_01.iff",
"object/mobile/dressed_rebel_trooper_human_female_01.iff",
"object/mobile/dressed_rebel_trooper_human_male_01.iff",
"object/mobile/dressed_rebel_trooper_sullustan_male_01.iff",
"object/mobile/dressed_rebel_trooper_twk_female_01.iff",
"object/mobile/dressed_rebel_trooper_twk_male_01.iff"},
lootGroups = {
{
groups = {
{group = "color_crystals", chance = 200000},
{group = "junk", chance = 6000000},
{group = "weapons_all", chance = 1250000},
{group = "armor_all", chance = 1250000},
{group = "clothing_attachments", chance = 150000},
{group = "armor_attachments", chance = 150000},
{group = "wearables_all", chance = 1000000}
}
}
},
weapons = {"rebel_weapons_medium"},
conversationTemplate = "",
reactionStf = "@npc_reaction/military",
attacks = merge(brawlermaster,marksmanmaster,riflemanmaster,pistoleermaster)
}
CreatureTemplates:addCreatureTemplate(fbase_rebel_rifleman_extreme, "fbase_rebel_rifleman_extreme")
| agpl-3.0 |
beauli/kong | spec/03-plugins/006-statsd/01-log_spec.lua | 3 | 6517 | local helpers = require "spec.helpers"
local UDP_PORT = 20000
describe("Plugin: statsd (log)", function()
local client
setup(function()
assert(helpers.start_kong())
client = helpers.proxy_client()
local api1 = assert(helpers.dao.apis:insert {
request_host = "logging1.com",
upstream_url = "http://mockbin.com"
})
local api2 = assert(helpers.dao.apis:insert {
request_host = "logging2.com",
upstream_url = "http://mockbin.com"
})
local api3 = assert(helpers.dao.apis:insert {
request_host = "logging3.com",
upstream_url = "http://mockbin.com"
})
local api4 = assert(helpers.dao.apis:insert {
request_host = "logging4.com",
upstream_url = "http://mockbin.com"
})
local api5 = assert(helpers.dao.apis:insert {
request_host = "logging5.com",
upstream_url = "http://mockbin.com"
})
local api6 = assert(helpers.dao.apis:insert {
request_host = "logging6.com",
upstream_url = "http://mockbin.com"
})
local api7 = assert(helpers.dao.apis:insert {
request_host = "logging7.com",
upstream_url = "http://mockbin.com"
})
assert(helpers.dao.plugins:insert {
api_id = api1.id,
name = "statsd",
config = {
host = "127.0.0.1",
port = UDP_PORT
}
})
assert(helpers.dao.plugins:insert {
api_id = api2.id,
name = "statsd",
config = {
host = "127.0.0.1",
port = UDP_PORT,
metrics = {"latency"}
}
})
assert(helpers.dao.plugins:insert {
api_id = api3.id,
name = "statsd",
config = {
host = "127.0.0.1",
port = UDP_PORT,
metrics = {"status_count"}
}
})
assert(helpers.dao.plugins:insert {
api_id = api4.id,
name = "statsd",
config = {
host = "127.0.0.1",
port = UDP_PORT,
metrics = {"request_size"}
}
})
assert(helpers.dao.plugins:insert {
api_id = api5.id,
name = "statsd",
config = {
host = "127.0.0.1",
port = UDP_PORT,
metrics = {"request_count"}
}
})
assert(helpers.dao.plugins:insert {
api_id = api6.id,
name = "statsd",
config = {
host = "127.0.0.1",
port = UDP_PORT,
metrics = {"response_size"}
}
})
assert(helpers.dao.plugins:insert {
api_id = api7.id,
name = "statsd",
config = {
host = "127.0.0.1",
port = UDP_PORT,
metrics = {"upstream_latency"}
}
})
end)
teardown(function()
if client then client:close() end
helpers.stop_kong()
end)
it("logs over UDP with default metrics", function()
local threads = require "llthreads2.ex"
local thread = threads.new({
function(port)
local socket = require "socket"
local server = assert(socket.udp())
server:settimeout(1)
server:setoption("reuseaddr", true)
server:setsockname("127.0.0.1", port)
local metrics = {}
for i = 1, 7 do
metrics[#metrics+1] = server:receive()
end
server:close()
return metrics
end
}, UDP_PORT)
thread:start()
local response = assert(client:send {
method = "GET",
path = "/request",
headers = {
host = "logging1.com"
}
})
assert.res_status(200, response)
local ok, metrics = thread:join()
assert.True(ok)
assert.contains("kong.logging1_com.request.count:1|c", metrics)
assert.contains("kong%.logging1_com%.latency:%d+|g", metrics, true)
assert.contains("kong.logging1_com.request.size:98|g", metrics)
assert.contains("kong.logging1_com.request.status.200:1|c", metrics)
assert.contains("kong%.logging1_com%.response%.size:%d+|g", metrics, true)
assert.contains("kong%.logging1_com%.upstream_latency:%d+|g", metrics, true)
end)
describe("metrics", function()
it("request_count", function()
local thread = helpers.udp_server(UDP_PORT)
local response = assert(client:send {
method = "GET",
path = "/request",
headers = {
host = "logging5.com"
}
})
assert.res_status(200, response)
local ok, res = thread:join()
assert.True(ok)
assert.equal("kong.logging5_com.request.count:1|c", res)
end)
it("status_count", function()
local thread = helpers.udp_server(UDP_PORT)
local response = assert(client:send {
method = "GET",
path = "/request",
headers = {
host = "logging3.com"
}
})
assert.res_status(200, response)
local ok, res = thread:join()
assert.True(ok)
assert.equal("kong.logging3_com.request.status.200:1|c", res)
end)
it("request_size", function()
local thread = helpers.udp_server(UDP_PORT)
local response = assert(client:send {
method = "GET",
path = "/request",
headers = {
host = "logging4.com"
}
})
assert.res_status(200, response)
local ok, res = thread:join()
assert.True(ok)
assert.matches("kong.logging4_com.request.size:%d+|g", res)
end)
it("latency", function()
local thread = helpers.udp_server(UDP_PORT)
local response = assert(client:send {
method = "GET",
path = "/request",
headers = {
host = "logging2.com"
}
})
assert.res_status(200, response)
local ok, res = thread:join()
assert.True(ok)
assert.matches("kong.logging2_com.latency:.*|g", res)
end)
it("response_size", function()
local thread = helpers.udp_server(UDP_PORT)
local response = assert(client:send {
method = "GET",
path = "/request",
headers = {
host = "logging6.com"
}
})
assert.res_status(200, response)
local ok, res = thread:join()
assert.True(ok)
assert.matches("kong.logging6_com.response.size:%d+|g", res)
end)
it("upstream_latency", function()
local thread = helpers.udp_server(UDP_PORT)
local response = assert(client:send {
method = "GET",
path = "/request",
headers = {
host = "logging7.com"
}
})
assert.res_status(200, response)
local ok, res = thread:join()
assert.True(ok)
assert.matches("kong.logging7_com.upstream_latency:.*|g", res)
end)
end)
end)
| apache-2.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/wearables/necklace/necklace_nyax.lua | 3 | 4211 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_wearables_necklace_necklace_nyax = object_tangible_wearables_necklace_shared_necklace_nyax:new {
playerRaces = { "object/creature/player/bothan_male.iff",
"object/creature/player/bothan_female.iff",
"object/creature/player/human_male.iff",
"object/creature/player/human_female.iff",
"object/creature/player/moncal_male.iff",
"object/creature/player/moncal_female.iff",
"object/creature/player/rodian_male.iff",
"object/creature/player/rodian_female.iff",
"object/creature/player/sullustan_male.iff",
"object/creature/player/sullustan_female.iff",
"object/creature/player/trandoshan_male.iff",
"object/creature/player/trandoshan_female.iff",
"object/creature/player/twilek_male.iff",
"object/creature/player/twilek_female.iff",
"object/creature/player/zabrak_male.iff",
"object/creature/player/zabrak_female.iff",
"object/mobile/vendor/aqualish_female.iff",
"object/mobile/vendor/aqualish_male.iff",
"object/mobile/vendor/bith_female.iff",
"object/mobile/vendor/bith_male.iff",
"object/mobile/vendor/bothan_female.iff",
"object/mobile/vendor/bothan_male.iff",
"object/mobile/vendor/devaronian_male.iff",
"object/mobile/vendor/gran_male.iff",
"object/mobile/vendor/human_female.iff",
"object/mobile/vendor/human_male.iff",
"object/mobile/vendor/ishi_tib_male.iff",
"object/mobile/vendor/moncal_female.iff",
"object/mobile/vendor/moncal_male.iff",
"object/mobile/vendor/nikto_male.iff",
"object/mobile/vendor/quarren_male.iff",
"object/mobile/vendor/rodian_female.iff",
"object/mobile/vendor/rodian_male.iff",
"object/mobile/vendor/sullustan_female.iff",
"object/mobile/vendor/sullustan_male.iff",
"object/mobile/vendor/trandoshan_female.iff",
"object/mobile/vendor/trandoshan_male.iff",
"object/mobile/vendor/twilek_female.iff",
"object/mobile/vendor/twilek_male.iff",
"object/mobile/vendor/weequay_male.iff",
"object/mobile/vendor/zabrak_female.iff",
"object/mobile/vendor/zabrak_male.iff" },
}
ObjectTemplates:addTemplate(object_tangible_wearables_necklace_necklace_nyax, "object/tangible/wearables/necklace/necklace_nyax.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/lair/base/lair_base_nest_tree_lg_light.lua | 1 | 2319 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_lair_base_lair_base_nest_tree_lg_light = object_tangible_lair_base_shared_lair_base_nest_tree_lg_light:new {
objectMenuComponent = "LairMenuComponent",
}
ObjectTemplates:addTemplate(object_tangible_lair_base_lair_base_nest_tree_lg_light, "object/tangible/lair/base/lair_base_nest_tree_lg_light.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/talus/trandoshan_sif_02.lua | 1 | 1268 | trandoshan_sif_02 = Creature:new {
objectName = "@mob/creature_names:trandoshan_sif",
randomNameType = NAME_GENERIC,
randomNameTag = true,
socialGroup = "sif",
faction = "sif",
level = 43,
chanceHit = 0.46,
damageMin = 360,
damageMax = 430,
baseXp = 4279,
baseHAM = 9500,
baseHAMmax = 11700,
armor = 0,
resists = {20,20,10,25,35,10,10,10,0},
meatType = "",
meatAmount = 0,
hideType = "",
hideAmount = 0,
boneType = "",
boneAmount = 0,
milk = 0,
tamingChance = 0,
ferocity = 0,
pvpBitmask = AGGRESSIVE + ATTACKABLE + ENEMY,
creatureBitmask = PACK + KILLER + STALKER,
optionsBitmask = AIENABLED,
diet = HERBIVORE,
templates = {"object/mobile/dressed_talus_sif_mercenary_trand_02.iff"},
lootGroups = {
{
groups = {
{group = "junk", chance = 5000000},
{group = "rifles", chance = 1000000},
{group = "pistols", chance = 1000000},
{group = "melee_weapons", chance = 1000000},
{group = "carbines", chance = 1000000},
{group = "wearables_common", chance = 1000000}
}
}
},
weapons = {"sif_weapons"},
conversationTemplate = "",
reactionStf = "@npc_reaction/military",
attacks = merge(brawlermaster,fencermaster,swordsmanmaster)
}
CreatureTemplates:addCreatureTemplate(trandoshan_sif_02, "trandoshan_sif_02")
| agpl-3.0 |
sprunk/Zero-K | LuaUI/Widgets/chili_old/Controls/treeviewnode.lua | 8 | 7993 | --//=============================================================================
TreeViewNode = Control:Inherit{
classname = "treeviewnode",
padding = {16,0,0,0},
autosize = true,
caption = "node",
expanded = true,
root = false,
nodes = {},
treeview = nil,
_nodes_hidden = {},
OnSelectChange = {},
OnCollapse = {},
OnExpand = {},
OnDraw = {},
}
local this = TreeViewNode
local inherited = this.inherited
--//=============================================================================
function TreeViewNode:New(obj)
if (obj.root) then
obj.padding = {0,0,0,0}
end
assert(obj.treeview)
obj.treeview = MakeWeakLink(obj.treeview)
obj = inherited.New(self,obj)
return obj
end
function TreeViewNode:SetParent(obj)
obj = UnlinkSafe(obj)
local typ = type(obj)
if (typ ~= "table") then
self.treeview = nil --FIXME code below in this file doesn't check for nil!
end
inherited.SetParent(self, obj)
end
function TreeViewNode:AddChild(obj, isNode)
if (isNode~=false) then
self.nodes[#self.nodes+1] = MakeWeakLink(obj)
end
if self.parent and self.parent.RequestRealign then self.parent:RequestRealign() end
return inherited.AddChild(self,obj)
end
function TreeViewNode:RemoveChild(obj)
local result = inherited.RemoveChild(self,obj)
local nodes = self.nodes
for i=1,#nodes do
if CompareLinks(nodes[i],obj) then
table.remove(nodes, i)
return result
end
end
return result
end
function TreeViewNode:ClearChildren()
local caption
if not(self.root) then
caption = self.children[1]
self.children[1] = self.children[#self.children]
self.children[#self.children] = nil
end
local collapsed = not self.expanded
self:Expand()
inherited.ClearChildren(self)
if (collapsed) then self:Collapse() end
if not(self.root) then
self.children[1] = caption
end
end
TreeViewNode.Clear = TreeViewNode.ClearChildren
--//=============================================================================
function TreeViewNode:Add(item)
local newnode
if (type(item) == "string") then
local lbl = TextBox:New{text = item; width = "100%"; padding = {2,3,2,2}; minHeight = self.minHeight;}
newnode = TreeViewNode:New{caption = item; treeview = self.treeview; minHeight = self.minHeight; expanded = self.expanded;}
newnode:AddChild(lbl, false)
self:AddChild(newnode)
elseif (IsObject(item)) then
newnode = TreeViewNode:New{caption = ""; treeview = self.treeview; minHeight = self.minHeight; expanded = self.expanded;}
newnode:AddChild(item, false)
self:AddChild(newnode)
end
return newnode
end
function TreeViewNode:Select()
if (self.root)or(not self.treeview) then
return
end
if (not CompareLinks(self.treeview.selected,self)) then
--// treeview itself calls node:OnSelectChange !
self.treeview:Select(self)
end
end
function TreeViewNode:Toggle()
if (self.root)or(not self.treeview) then
return
end
if (self.expanded) then
self:Collapse()
else
self:Expand()
end
end
function TreeViewNode:Expand()
if (self.root)or(not self.treeview) then
return
end
self:CallListeners(self.OnExpand)
self.expanded = true
self.treeview:RequestRealign()
for i=#self._nodes_hidden, 1, -1 do
local c = self._nodes_hidden[i]
self.children[#self.children + 1] = c
end
for i=#self._nodes_hidden, 1, -1 do
self._nodes_hidden[i] = nil
end
end
function TreeViewNode:Collapse()
if (self.root)or(not self.treeview) then
return
end
self:CallListeners(self.OnCollapse)
self.expanded = false
self.treeview:RequestRealign()
for i=#self.children, 2, -1 do
local c = self.children[i]
self.children[i] = nil
self._nodes_hidden[#self._nodes_hidden + 1] = c
end
end
--//=============================================================================
function TreeViewNode:GetNodeByCaption(caption)
for i=1,#self.nodes do
local n = self.nodes[i]
if (n.caption == caption) then
return n
end
local result = n:GetNodeByCaption(caption)
if (result) then
return result
end
end
end
function TreeViewNode:GetNodeByIndex(index, _i)
for i=1,#self.nodes do
_i = _i + 1
if (_i == index) then
return self.nodes[i]
end
local result = self.nodes[i]:GetNodeByIndex(index, _i)
if (IsNumber(result)) then
_i = result
else
return result
end
end
return _i
end
--//=============================================================================
function TreeViewNode:UpdateLayout()
local clientWidth = self.clientWidth
local children = self.children
if (not self.expanded)and(not self.root) then
if (children[1]) then
local c = children[1]
c:_UpdateConstraints(0, 0, clientWidth)
c:Realign()
self:Resize(nil, c.height, true, true)
else
self:Resize(nil, 10, true, true)
end
return true
end
local y = 0
for i=1, #children do
local c = children[i]
c:_UpdateConstraints(0, y, clientWidth)
c:Realign()
y = y + c.height
end
self:Resize(nil, y, true, true)
return true
end
--//=============================================================================
function TreeViewNode:_InNodeButton(x,y)
if (self.root) then
return false
end
if (x>=self.padding[1]) then
return false
end
local nodeTop = (self.children[1].height - self.padding[1])*0.5
return (nodeTop<=y)and(y-nodeTop<self.padding[1])
end
function TreeViewNode:HitTest(x,y, ...)
local obj = inherited.HitTest(self,x,y, ...)
if (obj) then return obj end
--if (self:_InNodeButton(x,y)) then
return self
--end
end
function TreeViewNode:MouseDown(x,y, ...)
if (self.root) then
return inherited.MouseDown(self, x, y, ...)
end
--//FIXME this function is needed to recv MouseClick -> fail
if (self:_InNodeButton(x,y)) then
return self
end
if (x>=self.padding[1])then
--[[ FIXME inherited.MouseDown should be executed before Select()!
local obj = inherited.MouseDown(self, x, y, ...)
return obj
--]]
if (y < self.padding[2]+self.children[1].height) then
self:Select()
end
local obj = inherited.MouseDown(self, x, y, ...)
return obj
end
end
function TreeViewNode:MouseClick(x,y, ...)
if (self.root) then
return inherited.MouseClick(self, x, y, ...)
end
if (self:_InNodeButton(x,y)) then
self:Toggle()
return self
end
local obj = inherited.MouseClick(self, x, y, ...)
return obj
end
function TreeViewNode:MouseDblClick(x,y, ...)
--//FIXME doesn't get called, related to the FIXME above!
if (self.root) then
return inherited.MouseDblClick(self, x, y, ...)
end
local obj = inherited.MouseDblClick(self, x, y, ...)
if (not obj) then
self:Toggle()
obj = self
end
return obj
end
--//=============================================================================
function TreeViewNode:DrawNode()
if (self.treeview) then
self.treeview.DrawNode(self)
end
end
function TreeViewNode:DrawNodeTree()
if (self.treeview) then
self.treeview.DrawNodeTree(self)
end
end
function TreeViewNode:DrawControl()
if (self.root) then
return
end
local dontDraw = self:CallListeners(self.OnDraw, self)
if (not dontDraw) then
self:DrawNode()
end
self:DrawNodeTree()
end
function TreeViewNode:DrawChildren()
if not (self.expanded or self.root) then
self:_DrawInClientArea(self.children[1].Draw,self.children[1])
return
end
if (next(self.children)) then
self:_DrawChildrenInClientArea('Draw')
end
end
function TreeViewNode:DrawChildrenForList()
if not (self.expanded or self.root) then
self:_DrawInClientArea(self.children[1].DrawForList,self.children[1])
return
end
if (next(self.children)) then
self:_DrawChildrenInClientArea('DrawForList')
end
end
--//=============================================================================
| gpl-2.0 |
aircross/OpenWrt-Firefly-LuCI | modules/base/luasrc/i18n.lua | 77 | 3182 | --[[
LuCI - Internationalisation
Description:
A very minimalistic but yet effective internationalisation module
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
]]--
--- LuCI translation library.
module("luci.i18n", package.seeall)
require("luci.util")
local tparser = require "luci.template.parser"
table = {}
i18ndir = luci.util.libpath() .. "/i18n/"
loaded = {}
context = luci.util.threadlocal()
default = "en"
--- Clear the translation table.
function clear()
end
--- Load a translation and copy its data into the translation table.
-- @param file Language file
-- @param lang Two-letter language code
-- @param force Force reload even if already loaded (optional)
-- @return Success status
function load(file, lang, force)
end
--- Load a translation file using the default translation language.
-- Alternatively load the translation of the fallback language.
-- @param file Language file
-- @param force Force reload even if already loaded (optional)
function loadc(file, force)
end
--- Set the context default translation language.
-- @param lang Two-letter language code
function setlanguage(lang)
context.lang = lang:gsub("_", "-")
context.parent = (context.lang:match("^([a-z][a-z])_"))
if not tparser.load_catalog(context.lang, i18ndir) then
if context.parent then
tparser.load_catalog(context.parent, i18ndir)
return context.parent
end
end
return context.lang
end
--- Return the translated value for a specific translation key.
-- @param key Default translation text
-- @return Translated string
function translate(key)
return tparser.translate(key) or key
end
--- Return the translated value for a specific translation key and use it as sprintf pattern.
-- @param key Default translation text
-- @param ... Format parameters
-- @return Translated and formatted string
function translatef(key, ...)
return tostring(translate(key)):format(...)
end
--- Return the translated value for a specific translation key
-- and ensure that the returned value is a Lua string value.
-- This is the same as calling <code>tostring(translate(...))</code>
-- @param key Default translation text
-- @return Translated string
function string(key)
return tostring(translate(key))
end
--- Return the translated value for a specific translation key and use it as sprintf pattern.
-- Ensure that the returned value is a Lua string value.
-- This is the same as calling <code>tostring(translatef(...))</code>
-- @param key Default translation text
-- @param ... Format parameters
-- @return Translated and formatted string
function stringf(key, ...)
return tostring(translate(key)):format(...)
end
| apache-2.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/furniture/cheap/armoire_s01.lua | 3 | 2671 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_furniture_cheap_armoire_s01 = object_tangible_furniture_cheap_shared_armoire_s01:new {
numberExperimentalProperties = {1, 1, 1, 2},
experimentalProperties = {"XX", "XX", "XX", "DR", "OQ"},
experimentalWeights = {1, 1, 1, 1, 1},
experimentalGroupTitles = {"null", "null", "null", "exp_quality"},
experimentalSubGroupTitles = {"null", "null", "hitpoints", "quality"},
experimentalMin = {0, 0, 1000, 1},
experimentalMax = {0, 0, 1000, 100},
experimentalPrecision = {0, 0, 0, 0},
experimentalCombineType = {0, 0, 4, 1},
}
ObjectTemplates:addTemplate(object_tangible_furniture_cheap_armoire_s01, "object/tangible/furniture/cheap/armoire_s01.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/clothing/clothing_hat_chef_02.lua | 1 | 3368 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_clothing_clothing_hat_chef_02 = object_draft_schematic_clothing_shared_clothing_hat_chef_02:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Bake Master\'s Cap",
craftingToolTab = 8, -- (See DraftSchematicObjectTemplate.h)
complexity = 19,
size = 3,
xpType = "crafting_clothing_general",
xp = 50,
assemblySkill = "clothing_assembly",
experimentingSkill = "clothing_experimentation",
customizationSkill = "clothing_customization",
customizationOptions = {2},
customizationStringNames = {"/private/index_color_1"},
customizationDefaults = {0},
ingredientTemplateNames = {"craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n"},
ingredientTitleNames = {"shell", "binding_and_weatherproofing", "liner"},
ingredientSlotType = {1, 0, 1},
resourceTypes = {"object/tangible/component/clothing/shared_fiberplast_panel.iff", "petrochem_inert", "object/tangible/component/clothing/shared_synthetic_cloth.iff"},
resourceQuantities = {3, 20, 1},
contribution = {100, 100, 100},
targetTemplate = "object/tangible/wearables/hat/hat_chef_s02.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_clothing_clothing_hat_chef_02, "object/draft_schematic/clothing/clothing_hat_chef_02.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/attachment/engine/blacksun_heavy_engine_s01.lua | 3 | 2316 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_ship_attachment_engine_blacksun_heavy_engine_s01 = object_tangible_ship_attachment_engine_shared_blacksun_heavy_engine_s01:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_attachment_engine_blacksun_heavy_engine_s01, "object/tangible/ship/attachment/engine/blacksun_heavy_engine_s01.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/dice/eqp_twenty_sided_dice_set.lua | 1 | 2944 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_dice_eqp_twenty_sided_dice_set = object_tangible_dice_shared_eqp_twenty_sided_dice_set:new {
templateType = DICE,
objectMenuComponent = "DiceMenuComponent",
sides = 20,
sidesText = "twenty",
selfSingleResult = "roll_one_self",
othersSingleResult = "roll_one_other",
selfManyResult = "roll_many_self",
othersManyResult = "roll_many_other",
numberExperimentalProperties = {1, 1, 1, 1},
experimentalProperties = {"XX", "XX", "XX", "CD"},
experimentalWeights = {1, 1, 1, 1},
experimentalGroupTitles = {"null", "null", "null", "exp_effectiveness"},
experimentalSubGroupTitles = {"null", "null", "hitpoints", "usemodifier"},
experimentalMin = {0, 0, 1000, -15},
experimentalMax = {0, 0, 1000, 15},
experimentalPrecision = {0, 0, 0, 0},
experimentalCombineType = {0, 0, 4, 1},
}
ObjectTemplates:addTemplate(object_tangible_dice_eqp_twenty_sided_dice_set, "object/tangible/dice/eqp_twenty_sided_dice_set.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/dressed_mozo_bondog.lua | 3 | 2192 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_dressed_mozo_bondog = object_mobile_shared_dressed_mozo_bondog:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_mozo_bondog, "object/mobile/dressed_mozo_bondog.iff")
| agpl-3.0 |
hfjgjfg/teamadmin | plugins/Feedback.lua | 49 | 1048 | do
function run(msg, matches)
local fuse = '#DearAdmin😜 we have recived a new feedback just now : #newfeedback \n\nID▶️ : ' .. msg.from.id .. '\n\nName▶ : ' .. msg.from.print_name ..'\n\nusername▶️ :@ ' .. msg.from.username ..'\n\n🅿️♏️ :\n\n\n' .. matches[1]
local fuses = '!printf user#id' .. msg.from.id
local text = matches[1]
bannedidone = string.find(msg.from.id, '123')
bannedidtwo =string.find(msg.from.id, '465')
bannedidthree =string.find(msg.from.id, '678')
print(msg.to.id)
if bannedidone or bannedidtwo or bannedidthree then --for banned people
return 'You are banned to send a feedback'
else
local sends0 = send_msg('chat#70690378', fuse, ok_cb, false)
return 'your feedback succesfully recived to @creed_is_dead and Team😜!'
end
end
return {
description = "Feedback",
usage = "!feedback : send maseage to admins with bot",
patterns = {
"^![Ff]eedback (.*)$"
},
run = run
}
end
| gpl-2.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/item/item_meat_kabob.lua | 3 | 2196 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_item_item_meat_kabob = object_static_item_shared_item_meat_kabob:new {
}
ObjectTemplates:addTemplate(object_static_item_item_meat_kabob, "object/static/item/item_meat_kabob.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/building/corellia/salon_corellia.lua | 3 | 2267 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_building_corellia_salon_corellia = object_building_corellia_shared_salon_corellia:new {
gameObjectType = 530,
planetMapCategory = "salon"
}
ObjectTemplates:addTemplate(object_building_corellia_salon_corellia, "object/building/corellia/salon_corellia.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/bio_engineer/dna_template/dna_template_fambaa.lua | 3 | 2332 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_bio_engineer_dna_template_dna_template_fambaa = object_draft_schematic_bio_engineer_dna_template_shared_dna_template_fambaa:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_bio_engineer_dna_template_dna_template_fambaa, "object/draft_schematic/bio_engineer/dna_template/dna_template_fambaa.iff")
| agpl-3.0 |
dopcn/hammerspoon | extensions/mjomatic/init.lua | 18 | 4683 | --- === hs.mjomatic ===
---
--- tmuxomatic-like window management
local mjomatic = {}
local alert = require 'hs.alert'
local application = require 'hs.application'
local screen = require 'hs.screen'
local gridh
local gridw
local function resizetogrid(window, coords)
-- alert.show(string.format('move window %q to %d,%d-%d,%d', window:title(), coords.r1, coords.c1, coords.r2, coords.c2), 20)
-- collect screen dimensions
local frame = screen.mainScreen():fullFrame()
local framew = screen.mainScreen():frame()
local h = framew.h
local w = frame.w
local x = framew.x
local y = framew.y
-- alert.show(string.format('screen dimensions %d,%d at %d,%d', h, w, x, y))
local hdelta = h / gridh
local wdelta = w / gridw
-- alert.show('hdelta='..hdelta, 5)
-- alert.show('wdelta='..wdelta, 5)
local newframe = {}
newframe.x = (coords.c1-1) * wdelta + x
newframe.y = (coords.r1-1) * hdelta + y
newframe.h = (coords.r2-coords.r1+1) * hdelta
newframe.w = (coords.c2-coords.c1+1) * wdelta
window:setFrame(newframe)
-- alert.show(string.format('new frame for %q is %d*%d at %d,%d', window:title(), newframe.w, newframe.h, newframe.x, newframe.y), 20)
end
--- hs.mjomatic.go(cfg)
--- Function
--- Applies a configuration to the currently open windows
---
--- Parameters:
--- * cfg - A table containing a series of strings, representing the desired window layout
---
--- Returns:
--- * None
---
--- Notes:
--- * An example use:
---
--- ~~~lua
--- mjomatic.go({
--- "CCCCCCCCCCCCCiiiiiiiiiii # <-- The windowgram, it defines the shapes and positions of windows",
--- "CCCCCCCCCCCCCiiiiiiiiiii",
--- "SSSSSSSSSSSSSiiiiiiiiiii",
--- "SSSSSSSSSSSSSYYYYYYYYYYY",
--- "SSSSSSSSSSSSSYYYYYYYYYYY",
--- "",
--- "C Google Chrome # <-- window C has application():title() 'Google Chrome'",
--- "i iTerm",
--- "Y YoruFukurou",
--- "S Sublime Text 2"})
--- ~~~
function mjomatic.go(cfg)
-- alert.show('mjomatic is go')
local grid = {}
local map = {}
local target = grid
-- FIXME move gsub stuff to separate function (iterator wrapper around io.lines?)
-- then do parsing in two loops so we don't need to muck about with target
-- and do some parsing inline
for i,l in ipairs(cfg) do
l = l:gsub('#.*','') -- strip comments
l = l:gsub('%s*$','') -- strip trailing whitespace
-- alert.show(l)
if l:len() == 0 then
if #grid > 0 then
if target == grid then
target = map
elseif #map > 0 then
error('config has more than two chunks')
end
end
else
table.insert(target, l)
end
end
-- alert.show('grid size '..#grid)
-- alert.show('map size '..#map)
gridh = #grid
gridw = nil
local windows = {}
local titlemap = {}
for i, v in ipairs(map) do
local key = v:sub(1,1)
local title = v:sub(3)
-- alert.show(string.format('%s=%s', key, title))
titlemap[title] = key
end
for row, v in ipairs(grid) do
if gridw then
if gridw ~= v:len() then
error('inconsistent grid width')
end
else
gridw=v:len()
end
for column = 1, #v do
local char = v:sub(column, column)
if not windows[char] then
-- new window, create it with size 1x1
windows[char] = {r1=row, c1=column, r2=row, c2=column}
else
-- expand it
windows[char].r2=row
windows[char].c2=column
end
end
end
-- alert.show('grid h='..gridh..' w='..gridw)
-- alert.show('windows:')
for char, window in pairs(windows) do
-- alert.show(string.format('window %s: top left %d,%d bottom right %d,%d', char, window.r1, window.c1, window.r2, window.c2))
end
for title, key in pairs(titlemap) do
-- alert.show(string.format("title %s key %s", title, key))
if not windows[key] then
error(string.format('no window found for application %s (%s)', title, key))
end
local app = application.get(title)
local window = app and app:mainWindow()
-- alert.show(string.format('application title for %q is %q, main window %q', title, app:title(), window:title()))
if window then
resizetogrid(window, windows[key])
else
alert.show(string.format('application %s has no main window', app:title()))
end
end
end
return mjomatic
| mit |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/medicine/pet/serverobjects.lua | 3 | 3322 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
--Children folder includes
-- Server Objects
includeFile("tangible/medicine/pet/droid_damage_kit_a.lua")
includeFile("tangible/medicine/pet/droid_damage_kit_b.lua")
includeFile("tangible/medicine/pet/droid_damage_kit_c.lua")
includeFile("tangible/medicine/pet/droid_damage_kit_d.lua")
includeFile("tangible/medicine/pet/droid_stimpack_a.lua")
includeFile("tangible/medicine/pet/droid_stimpack_b.lua")
includeFile("tangible/medicine/pet/droid_stimpack_c.lua")
includeFile("tangible/medicine/pet/droid_stimpack_d.lua")
includeFile("tangible/medicine/pet/droid_vitapack_a.lua")
includeFile("tangible/medicine/pet/droid_vitapack_b.lua")
includeFile("tangible/medicine/pet/droid_vitapack_c.lua")
includeFile("tangible/medicine/pet/droid_wound_kit_a.lua")
includeFile("tangible/medicine/pet/droid_wound_kit_b.lua")
includeFile("tangible/medicine/pet/droid_wound_kit_c.lua")
includeFile("tangible/medicine/pet/droid_wound_kit_d.lua")
includeFile("tangible/medicine/pet/pet_stimpack_a.lua")
includeFile("tangible/medicine/pet/pet_stimpack_b.lua")
includeFile("tangible/medicine/pet/pet_stimpack_c.lua")
includeFile("tangible/medicine/pet/pet_stimpack_d.lua")
includeFile("tangible/medicine/pet/pet_vitapack_a.lua")
includeFile("tangible/medicine/pet/pet_vitapack_b.lua")
includeFile("tangible/medicine/pet/pet_vitapack_c.lua")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/dressed_jazeen_thurmm.lua | 3 | 2200 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_dressed_jazeen_thurmm = object_mobile_shared_dressed_jazeen_thurmm:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_jazeen_thurmm, "object/mobile/dressed_jazeen_thurmm.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/npc/tatooine_special/sarlacc.lua | 1 | 2281 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_npc_tatooine_special_sarlacc = object_tangible_npc_tatooine_special_shared_sarlacc:new {
objectMenuComponent = "SarlaccMenuComponent"
}
ObjectTemplates:addTemplate(object_tangible_npc_tatooine_special_sarlacc, "object/tangible/npc/tatooine_special/sarlacc.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/clothing/clothing_armor_ithorian_sentinel_bracer_r.lua | 1 | 4001 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_clothing_clothing_armor_ithorian_sentinel_bracer_r = object_draft_schematic_clothing_shared_clothing_armor_ithorian_sentinel_bracer_r:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Ithorian Sentinel Bracer (Right)",
craftingToolTab = 2, -- (See DraftSchematicObjectTemplate.h)
complexity = 45,
size = 4,
xpType = "crafting_clothing_armor",
xp = 420,
assemblySkill = "armor_assembly",
experimentingSkill = "armor_experimentation",
customizationSkill = "armor_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n"},
ingredientTitleNames = {"auxilary_coverage", "body", "liner", "hardware_and_attachments", "binding_and_reinforcement", "padding", "armor", "load_bearing_harness", "reinforcement"},
ingredientSlotType = {0, 0, 0, 0, 0, 0, 1, 1, 1},
resourceTypes = {"ore_intrusive", "fuel_petrochem_solid_known", "fiberplast_naboo", "aluminum", "copper_beyrllius", "hide_wooly", "object/tangible/component/armor/shared_armor_segment_composite.iff", "object/tangible/component/clothing/shared_synthetic_cloth.iff", "object/tangible/component/clothing/shared_reinforced_fiber_panels.iff"},
resourceQuantities = {50, 50, 25, 30, 20, 20, 1, 1, 1},
contribution = {100, 100, 100, 100, 100, 100, 100, 100, 100},
targetTemplate = "object/tangible/wearables/armor/ithorian_sentinel/ith_armor_s03_bracer_r.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_clothing_clothing_armor_ithorian_sentinel_bracer_r, "object/draft_schematic/clothing/clothing_armor_ithorian_sentinel_bracer_r.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/components/armor/arm_koensayr_promotional_b9_durasteel.lua | 3 | 2360 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_ship_components_armor_arm_koensayr_promotional_b9_durasteel = object_tangible_ship_components_armor_shared_arm_koensayr_promotional_b9_durasteel:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_components_armor_arm_koensayr_promotional_b9_durasteel, "object/tangible/ship/components/armor/arm_koensayr_promotional_b9_durasteel.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/structure/tatooine/skeleton_greater_krayt_head.lua | 3 | 2300 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_structure_tatooine_skeleton_greater_krayt_head = object_static_structure_tatooine_shared_skeleton_greater_krayt_head:new {
}
ObjectTemplates:addTemplate(object_static_structure_tatooine_skeleton_greater_krayt_head, "object/static/structure/tatooine/skeleton_greater_krayt_head.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/dressed_selonian_m_11.lua | 3 | 2200 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_dressed_selonian_m_11 = object_mobile_shared_dressed_selonian_m_11:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_selonian_m_11, "object/mobile/dressed_selonian_m_11.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/component/droid/struct_maint_module_base.lua | 3 | 2284 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_component_droid_struct_maint_module_base = object_tangible_component_droid_shared_struct_maint_module_base:new {
}
ObjectTemplates:addTemplate(object_tangible_component_droid_struct_maint_module_base, "object/tangible/component/droid/struct_maint_module_base.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/queen_merek_harvester.lua | 3 | 2200 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_queen_merek_harvester = object_mobile_shared_queen_merek_harvester:new {
}
ObjectTemplates:addTemplate(object_mobile_queen_merek_harvester, "object/mobile/queen_merek_harvester.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/particle/particle_geyser_01_l0.lua | 3 | 2236 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_particle_particle_geyser_01_l0 = object_static_particle_shared_particle_geyser_01_l0:new {
}
ObjectTemplates:addTemplate(object_static_particle_particle_geyser_01_l0, "object/static/particle/particle_geyser_01_l0.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/components/droid_interface/ddi_hk_mk4.lua | 3 | 2292 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_ship_components_droid_interface_ddi_hk_mk4 = object_tangible_ship_components_droid_interface_shared_ddi_hk_mk4:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_components_droid_interface_ddi_hk_mk4, "object/tangible/ship/components/droid_interface/ddi_hk_mk4.iff")
| agpl-3.0 |
sprunk/Zero-K | LuaUI/Headers/allyteam_selection_utilities.lua | 2 | 1678 | local function GetLeftRightAllyTeamIDs()
if Spring.Utilities.Gametype.isFFA() or Spring.Utilities.Gametype.isSandbox() then
-- not 2 teams: unhandled by spec panels
return {}
end
local myAllyTeamID = 0 -- FIXME Spring.GetLocalAllyTeamID()
local enemyAllyTeamID = 1 -- FIXME assumes teams are 0 and 1
local myTeamID = Spring.GetTeamList(myAllyTeamID)[1] -- FIXME Spring.GetLocalTeamID()
local myBoxID = Spring.GetTeamRulesParam(myTeamID, "start_box_id")
if not myBoxID then -- can start anywhere
--[[ FIXME: since allyteam is hardcoded to 0 this can also mean we're in in allyteam 1+
and just can't read allyteam 0's box, but since currently this func's result is
only really used by specs so it's not apparent ]]
return {0, 1}
end
local myBoxRepresentativeSpotX = Spring.GetGameRulesParam("startpos_x_" .. myBoxID .. "_1")
local comparisonX
if Spring.GetGameRulesParam("shuffleMode") == "allshuffle" and Spring.GetGameRulesParam("startbox_max_n") > 1 then
-- there are multiple boxes the enemy can be in so just look where we are on the map
-- FIXME 1: if fullview spec, should just compare to enemy box directly
-- FIXME 2: else it should compare to the remaining boxes, not the map center
comparisonX = Game.mapSizeX / 2
else
local enemyBoxID = 1 - myBoxID -- FIXME: assumes boxIDs are 0 and 1 and that there are at least 2 boxes
comparisonX = Spring.GetGameRulesParam("startpos_x_" .. enemyBoxID .. "_1")
end
if (not myBoxRepresentativeSpotX) or (myBoxRepresentativeSpotX <= comparisonX) then
return {myAllyTeamID, enemyAllyTeamID}
else
return {enemyAllyTeamID, myAllyTeamID}
end
end
return GetLeftRightAllyTeamIDs
| gpl-2.0 |
sprunk/Zero-K | LuaUI/Widgets/chili/simple examples/Widgets/gui_simplewindow.lua | 1 | 3666 |
function widget:GetInfo()
return {
name = "chilli example",
desc = "example chilli code",
author = "smoth",
date = "8/26/10",
license = "none",
layer = 0,
enabled = false -- loaded by default?
}
end
local windows = {}
local Window
local ScrollPanel
local Chili
local lab
local tx = "Many of your fathers and brothers have perished valiantly in the face of a contemptible enemy. We must never forget what the Federation has done to our people! My brother, Garma Zabi, has shown us these virtues through our own valiant sacrifice. By focusing our anger and sorrow, we are finally in a position where victory is within our grasp, and once again, our most cherished nation will flourish. Victory is the greatest tribute we can pay those who sacrifice their lives for us! Rise, our people, Rise! Take your sorrow and turn it into anger! Zeon thirsts for the strength of its people! SIEG ZEON!!! SIEG ZEON!!! SIEG ZEON!!"
local btn
local scrollpanel1
local redlabel
local bluelabel
local scrolllabel
function widget:Shutdown()
for i = 1, #windows do
(windows[i]):Dispose()
end
end
function widget:Initialize()
if (not WG.Chili) then
widgetHandler:RemoveWidget()
return
end
Chili = WG.Chili
Window = Chili.Window
ScrollPanel = Chili.ScrollPanel
local screen0 = Chili.Screen0
blockOfText = Chili.TextBox:New{
x = 5,
y = 10,
width = '50%',
align = "left",
valign = "ascender",
--itemPadding = {5, 5, 5, 5},
--itemMargin = {1, 1, 1, 1},
text = tx,
fontOutline = true,
}
scrollabel1 = Chili.Label:New{
x = '51%',
y = '10%',
width = 150,
height = 15,
valign = "ascender",
caption = "I AM A RED LABEL!",
fontsize = 13,
autosize = false,
textColor = {1, 0.1, 0.1, 0.9},
anchors = {left = true, bottom = true, right = true},
}
scrollabel2 = Chili.Label:New{
x = '51%',
y = '40%',
width = 150,
height = 15,
valign = "ascender",
caption = "I AM A GREEN LABEL!",
fontsize = 13,
autosize = false,
textColor = {0.1, 1, 0.1, 0.9},
anchors = {left = true, bottom = true, right = true},
}
scrollpanel1 = ScrollPanel:New{
x = 0,
y = 50,
bottom = 0,
right = 6,
horizontalScrollbar = false,
verticalSmartScroll = true,
disableChildrenHitTest = true,
children = {
blockOfText,
scrollabel1,
scrollabel2,
},
}
btn = Chili.Button:New{
x = 5,
y = 25,
width = 15,
height = 15,
caption = "O",
anchors = {top = true, right = true},
textColor = {1, 1, 1, 0.9},
backgroundColor = {0.1, 1, 0.1, 0.9},
-- OnClick = {function() window1:Dispose() end},
}
redlabel = Chili.Label:New{
x = 5,
y = 8,
width = 150,
height = 15,
valign = "ascender",
caption = "I AM A RED LABEL!",
fontsize = 13,
autosize = false,
textColor = {1, 0.1, 0.1, 0.9},
anchors = {left = true, bottom = true, right = true},
}
window0 = Chili.Window:New{
dockable = true,
parent = screen0,
caption = "Window name",
draggable = true,
resizable = true,
dragUseGrip = true,
clientWidth = 400,
clientHeight = 150,
backgroundColor = {0.8, 0.8, 0.8, 0.9},
children = { -- to nest this way, table has to come BEFORE the parent or it won't show
scrollpanel1,
btn,
redlabel,
},
}
windows[#windows + 1] = window0
bluelabel = Chili.Label:New{
parent = window0, --can nest this way as well, has to come AFTER parent or it won't see the parent
x = 160,
y = 8,
width = 150,
height = 15,
valign = "ascender",
caption = "I AM A BLUE LABEL!",
fontsize = 13,
autosize = false,
textColor = {0.1, 0.1, 1, 0.9},
anchors = {left = true, bottom = true, right = true},
}
end
| gpl-2.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/deed/pet_deed/sharnaff_deed.lua | 2 | 2748 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_deed_pet_deed_sharnaff_deed = object_tangible_deed_pet_deed_shared_sharnaff_deed:new {
templateType = PETDEED,
numberExperimentalProperties = {1, 1},
experimentalProperties = {"XX", "XX"},
experimentalWeights = {1, 1},
experimentalGroupTitles = {"null", "null"},
experimentalSubGroupTitles = {"null", "null"},
experimentalMin = {0, 0},
experimentalMax = {0, 0},
experimentalPrecision = {0, 0},
experimentalCombineType = {0, 0},
generatedObjectTemplate = "mobile/pet/sharnaff_be.iff",
controlDeviceObjectTemplate = "object/intangible/pet/sharnaff_hue.iff",
mobileTemplate = "sharnaff_be",
}
ObjectTemplates:addTemplate(object_tangible_deed_pet_deed_sharnaff_deed, "object/tangible/deed/pet_deed/sharnaff_deed.iff")
| agpl-3.0 |
Geigerkind/DPSMate | DPSMate_AbsorbsTaken/DPSMate_Details_AbsorbsTakenTotal.lua | 2 | 18933 | DPSMate.Modules.DetailsAbsorbsTakenTotal = {}
local g, g2 = nil,nil
local curKey = 1
local db, cbt = {}, 0
local buttons = {}
local ColorTable={}
local _G = getglobal
local tinsert = table.insert
local tremove = table.remove
local strformat = string.format
local toggle = false
local totSumTable = {}
local totMax = 0
local totTime = 0
function DPSMate.Modules.DetailsAbsorbsTakenTotal:UpdateDetails(obj, key)
curKey = key
db, cbt = DPSMate:GetMode(key)
buttons = {}
ColorTable={
{0.95,0.90,0.5},
{0.0,0.9,0.0},
{0.0,0.0,1.0},
{1.0,1.0,0.0},
{1.0,0.0,1.0},
{0.0,1.0,1.0},
{1.0,1.0,1.0},
{0.5,0.0,0.0},
{0.0,0.5,0.0},
{0.0,0.0,0.5},
{0.5,0.5,0.0},
{0.5,0.0,0.5},
{0.0,0.5,0.5},
{0.5,0.5,0.5},
{0.75,0.25,0.25},
{0.25,0.75,0.25},
{0.25,0.25,0.75},
{0.75,0.75,0.25},
{0.75,0.25,0.75},
{0.25,0.75,0.75},
{1.0,0.5,0.0},
{0.0,0.5,1.0},
{1.0,0.0,0.5},
{0.5,1.0,0.0},
{0.5,0.0,1.0},
{0.0,1.0,0.5},
{0.0,0.25,0.5},
{0.25,0,0.5},
{0.5,0.25,0.0},
{0.5,0.0,0.25},
{0.5,0.75,0.0},
{0.5,0.0,0.75},
{0.0,0.75,0.5},
{0.75,0.0,0.5},
}
if not g then
g=DPSMate.Options.graph:CreateGraphLine("ABSORBSTTTLineGraph",DPSMate_Details_AbsorbsTakenTotal_DiagramLine,"CENTER","CENTER",0,0,740,220)
g2=DPSMate.Options.graph:CreateStackedGraph("ABSORBSTTTStackedGraph",DPSMate_Details_AbsorbsTakenTotal_DiagramLine,"CENTER","CENTER",0,0,850,220)
g2:SetGridColor({0.5,0.5,0.5,0.5})
g2:SetAxisDrawing(true,true)
g2:SetAxisColor({1.0,1.0,1.0,1.0})
g2:SetAutoScale(true)
g2:SetYLabels(true, false)
g2:SetXLabels(true)
g2:Hide()
end
DPSMate_Details_AbsorbsTakenTotal_PlayerList_CB:SetChecked(false)
DPSMate_Details_AbsorbsTakenTotal_PlayerList_CB.act = false
DPSMate_Details_AbsorbsTakenTotal_Title:SetText(DPSMate.L["absorbstakensum"])
self:LoadTable()
self:LoadLegendButtons()
if toggle then
self:UpdateStackedGraph()
else
self:UpdateLineGraph()
end
DPSMate_Details_AbsorbsTakenTotal:Show()
DPSMate_Details_AbsorbsTakenTotal:SetScale((DPSMateSettings["targetscale"] or 0.58)/UIParent:GetScale())
end
function DPSMate.Modules.DetailsAbsorbsTakenTotal:UpdateLineGraph()
g:ResetData()
g:SetGridColor({0.5,0.5,0.5,0.5})
g:SetAxisDrawing(true,true)
g:SetAxisColor({1.0,1.0,1.0,1.0})
g:SetAutoScale(true)
g:SetYLabels(true, false)
g:SetXLabels(true)
g2:Hide()
DPSMate_Details_AbsorbsTakenTotal_DiagramLine:SetWidth(770)
DPSMate_Details_AbsorbsTakenTotal_DiagramLegend:Show()
g:Show()
toggle=false
self:AddTotalDataSeries()
local Max = totMax
for cat, val in pairs(buttons) do
g:AddDataSeries(val[3], {val[1], {}}, {})
local temp = DPSMate:GetMaxValue(val[3], 2)
if temp>Max then
Max = temp
end
end
g:SetGridSpacing(totTime/10,Max/7)
end
function DPSMate.Modules.DetailsAbsorbsTakenTotal:UpdateStackedGraph()
g:Hide()
DPSMate_Details_AbsorbsTakenTotal_DiagramLine:SetWidth(870)
DPSMate_Details_AbsorbsTakenTotal_DiagramLegend:Hide()
local Data1 = {}
local label = {}
local maxX, maxY = 0,0
local p = {}
for cat, val in db do
local tarname = DPSMate:GetUserById(cat)
local temp = {}
if DPSMate:ApplyFilter(curKey, tarname) then
for qq, uu in val do
local ownername = DPSMate:GetUserById(qq)
for ca, va in uu["i"] do
local i, dmg = 1, 5
if DPSMateDamageTaken[1][cat] then
if DPSMateDamageTaken[1][cat][va[2]] then
if DPSMateDamageTaken[1][cat][va[2]][va[3]] then
dmg = DPSMateDamageTaken[1][cat][va[2]][va[3]][14]
if dmg>DPSMate.DB.FixedShieldAmounts[DPSMate:GetAbilityById(va[5])] then
dmg = DPSMate.DB.FixedShieldAmounts[DPSMate:GetAbilityById(va[5])]
end
end
end
end
if dmg==5 or dmg==0 then
dmg = ceil((1/15)*((DPSMateUser[ownername][8] or 60)/60)*DPSMate.DB.FixedShieldAmounts[DPSMate:GetAbilityById(va[5])]*0.33)
end
if va[4] then
dmg = dmg + va[4]
end
if dmg>0 then
local i = 1
while true do
if not temp[i] then
tinsert(temp, i, {va[1], dmg})
break
elseif va[1]<=temp[i][1] then
tinsert(temp, i, {va[1], dmg})
break
end
i=i+1
end
end
end
end
tinsert(label, 1, tarname)
tinsert(Data1, 1, temp)
end
end
for cat, val in p do
if maxY<val then
maxY = val
end
end
g2:ResetData()
g2:SetGridSpacing(maxX/7,(maxY/2)/14)
g2:AddDataSeries(Data1,{1.0,0.0,0.0,0.8}, {}, label)
g2:Show()
toggle=true
end
function DPSMate.Modules.DetailsAbsorbsTakenTotal:ToggleMode()
if toggle then
self:UpdateLineGraph()
toggle=false
else
self:UpdateStackedGraph()
toggle=true
end
end
function DPSMate.Modules.DetailsAbsorbsTakenTotal:GetSummarizedTable(arr)
return DPSMate.Sync:GetSummarizedTable(arr)
end
function DPSMate.Modules.DetailsAbsorbsTakenTotal:CreateGraphTable()
local lines = {}
for i=1, 8 do
-- Horizontal
lines[i] = DPSMate.Options.graph:DrawLine(DPSMate_Details_AbsorbsTakenTotal_PlayerList, 10, 270-i*30, 860, 270-i*30, 20, {0.5,0.5,0.5,0.5}, "BACKGROUND")
lines[i]:Show()
end
-- Vertical
lines[9] = DPSMate.Options.graph:DrawLine(DPSMate_Details_AbsorbsTakenTotal_PlayerList, 40, 260, 40, 10, 20, {0.5,0.5,0.5,0.5}, "BACKGROUND")
lines[9]:Show()
lines[10] = DPSMate.Options.graph:DrawLine(DPSMate_Details_AbsorbsTakenTotal_PlayerList, 170, 260, 170, 10, 20, {0.5,0.5,0.5,0.5}, "BACKGROUND")
lines[10]:Show()
lines[11] = DPSMate.Options.graph:DrawLine(DPSMate_Details_AbsorbsTakenTotal_PlayerList, 510, 260, 510, 10, 20, {0.5,0.5,0.5,0.5}, "BACKGROUND")
lines[11]:Show()
lines[12] = DPSMate.Options.graph:DrawLine(DPSMate_Details_AbsorbsTakenTotal_PlayerList, 570, 260, 570, 10, 20, {0.5,0.5,0.5,0.5}, "BACKGROUND")
lines[12]:Show()
lines[13] = DPSMate.Options.graph:DrawLine(DPSMate_Details_AbsorbsTakenTotal_PlayerList, 630, 260, 630, 10, 20, {0.5,0.5,0.5,0.5}, "BACKGROUND")
lines[13]:Show()
lines[14] = DPSMate.Options.graph:DrawLine(DPSMate_Details_AbsorbsTakenTotal_PlayerList, 690, 260, 690, 10, 20, {0.5,0.5,0.5,0.5}, "BACKGROUND")
lines[14]:Show()
lines[15] = DPSMate.Options.graph:DrawLine(DPSMate_Details_AbsorbsTakenTotal_PlayerList, 750, 260, 750, 10, 20, {0.5,0.5,0.5,0.5}, "BACKGROUND")
lines[15]:Show()
lines[16] = DPSMate.Options.graph:DrawLine(DPSMate_Details_AbsorbsTakenTotal_PlayerList, 810, 260, 810, 10, 20, {0.5,0.5,0.5,0.5}, "BACKGROUND")
lines[16]:Show()
end
function DPSMate.Modules.DetailsAbsorbsTakenTotal:AddTotalDataSeries()
local sumTable, newArr = {[0]=0}, {}
local temp = {}
local tempDat = {}
for cat, val in db do
local user = DPSMate:GetUserById(cat)
if DPSMate:ApplyFilter(curKey, user) then
tempDat[user] = true
for qq, uu in val do
local ownername = DPSMate:GetUserById(qq)
for ca, va in uu["i"] do
local i, dmg = 1, 5
if DPSMateDamageTaken[1][cat] then
if DPSMateDamageTaken[1][cat][va[2]] then
if DPSMateDamageTaken[1][cat][va[2]][va[3]] then
dmg = DPSMateDamageTaken[1][cat][va[2]][va[3]][14]
if dmg>DPSMate.DB.FixedShieldAmounts[DPSMate:GetAbilityById(va[5])] then
dmg = DPSMate.DB.FixedShieldAmounts[DPSMate:GetAbilityById(va[5])]
end
end
end
end
if dmg==5 or dmg==0 then
dmg = ceil((1/15)*((DPSMateUser[ownername][8] or 60)/60)*DPSMate.DB.FixedShieldAmounts[DPSMate:GetAbilityById(va[5])]*0.33)
end
if va[4] then
dmg = dmg + va[4]
end
if dmg>0 then
if sumTable[va[1]] then
sumTable[va[1]] = sumTable[va[1]] + dmg
else
sumTable[va[1]] = dmg
end
end
end
end
end
end
local tl = DPSMate:TableLength(tempDat)
tl = ceil(tl-0.3*tl)
temp = nil
for cat, val in sumTable do
local i=1
while true do
if (not newArr[i]) then
tinsert(newArr, i, {cat, val/tl})
break
end
if cat<newArr[i][1] then
tinsert(newArr, i, {cat, val/tl})
break
end
i=i+1
end
end
totSumTable = self:GetSummarizedTable(newArr)
totMax = DPSMate:GetMaxValue(totSumTable, 2)
totTime = DPSMate:GetMaxValue(totSumTable, 1)
g:SetXAxis(0,totTime)
g:SetYAxis(0,totMax)
g:SetGridSpacing(totTime/10,totMax/7)
g:AddDataSeries(totSumTable,{{1.0,0.0,0.0,0.8}, {1.0,1.0,0.0,0.8}}, {})
end
function DPSMate.Modules.DetailsAbsorbsTakenTotal:GetTableValues()
local arr, total = {}, 0
local temp = {}
for cat, val in db do -- 28 Target
local PerPlayerAbsorb = 0
local abAbsorb = {}
local totHits = 0
local tarname = DPSMate:GetUserById(cat)
if DPSMate:ApplyFilter(curKey, tarname) then
for ca, va in pairs(val) do -- 28 Owner
local ownername = DPSMate:GetUserById(ca)
local PerOwnerAbsorb = 0
for c, v in pairs(va) do -- Power Word: Shield
if c~="i" then
local shieldname = DPSMate:GetAbilityById(c)
local PerAbilityAbsorb = 0
for ce, ve in pairs(v) do -- 1
local PerShieldAbsorb = 0
for cet, vel in pairs(ve) do
if cet~="i" then
local totalHits = 0
for qq,ss in vel do
totalHits = totalHits + ss
end
for qq,ss in vel do
local p = 5
if DPSMateDamageTaken[1][cat] then
if DPSMateDamageTaken[1][cat][cet] then
if DPSMateDamageTaken[1][cat][cet][qq] then
if DPSMateDamageTaken[1][cat][cet][qq][14]~=0 then
p=ceil(DPSMateDamageTaken[1][cat][cet][qq][14])
end
end
end
elseif DPSMateEDT[1][cat] then
if DPSMateEDT[1][cat][cet] then
if DPSMateEDT[1][cat][cet][qq] then
if DPSMateEDT[1][cat][cet][qq][4]~=0 then
p=ceil((DPSMateEDT[1][cat][cet][qq][4]+DPSMateEDT[1][cat][cet][qq][8])/2)
end
end
end
end
if p>DPSMate.DB.FixedShieldAmounts[shieldname] then
p = DPSMate.DB.FixedShieldAmounts[shieldname]
end
if p==5 or p==0 then
p = ceil((1/totalHits)*((DPSMateUser[ownername][8] or 60)/60)*DPSMate.DB.FixedShieldAmounts[shieldname]*0.33)
end
PerShieldAbsorb=PerShieldAbsorb+ss*p
end
totHits = totHits + totalHits
end
end
if ve["i"][1]==1 then
PerShieldAbsorb=PerShieldAbsorb+ve["i"][2]
end
PerAbilityAbsorb = PerAbilityAbsorb+PerShieldAbsorb
end
PerOwnerAbsorb = PerOwnerAbsorb+PerAbilityAbsorb
if abAbsorb[DPSMate.DB.ShieldFlags[shieldname] or 0] then
abAbsorb[DPSMate.DB.ShieldFlags[shieldname] or 0] = abAbsorb[DPSMate.DB.ShieldFlags[shieldname] or 0] + PerAbilityAbsorb
else
abAbsorb[DPSMate.DB.ShieldFlags[shieldname] or 0] = PerAbilityAbsorb
end
end
end
PerPlayerAbsorb = PerPlayerAbsorb+PerOwnerAbsorb
end
if PerPlayerAbsorb>0 then
if temp[tarname] then
temp[tarname][2] = temp[tarname][2] + PerPlayerAbsorb
temp[tarname][3] = temp[tarname][3] + ((abAbsorb[0] or 0)+(abAbsorb[1] or 0))
temp[tarname][4] = temp[tarname][4] + (abAbsorb[3] or 0)
temp[tarname][5] = temp[tarname][5] + (abAbsorb[2] or 0)
temp[tarname][6] = temp[tarname][6] + (abAbsorb[4] or 0)
temp[tarname][7] = temp[tarname][7] + (abAbsorb[5] or 0)
temp[tarname][8] = temp[tarname][8] + (abAbsorb[6] or 0)
temp[tarname][9] = temp[tarname][9] + (abAbsorb[7] or 0)
else
temp[tarname] = {tarname, PerPlayerAbsorb, (abAbsorb[0] or 0)+(abAbsorb[1] or 0), abAbsorb[3] or 0, abAbsorb[2] or 0, abAbsorb[4] or 0, abAbsorb[5] or 0, abAbsorb[6] or 0, abAbsorb[7] or 0}
end
end
end
end
for ca, va in temp do
if va then
tinsert(arr, va)
total = total + va[2]
end
end
temp = nil
local newArr = {}
for cat, val in arr do
local i = 1
while true do
if (not newArr[i]) then
tinsert(newArr, i, val)
break
else
if newArr[i][2] < val[2] then
tinsert(newArr, i, val)
break
end
end
i=i+1
end
end
return newArr, total
end
function DPSMate.Modules.DetailsAbsorbsTakenTotal:CheckButtonCheckAll(obj)
if obj.act then
obj.act = false
for i=1, 30 do
local ob = _G("DPSMate_Details_AbsorbsTakenTotal_PlayerList_Child_R"..i)
if ob.user then
self:RemoveLinesButton(ob.user, ob)
_G("DPSMate_Details_AbsorbsTakenTotal_PlayerList_Child_R"..i.."_CB"):SetChecked(obj.act)
end
end
else
obj.act = true
for i=1, 30 do
local ob = _G("DPSMate_Details_AbsorbsTakenTotal_PlayerList_Child_R"..i)
if ob.user then
self:RemoveLinesButton(ob.user, ob)
self:AddLinesButton(ob.user, ob)
_G("DPSMate_Details_AbsorbsTakenTotal_PlayerList_Child_R"..i.."_CB"):SetChecked(obj.act)
end
end
end
end
function DPSMate.Modules.DetailsAbsorbsTakenTotal:SortLineTable(uid)
local newArr = {}
for cat, val in db[uid] do
local ownername = DPSMate:GetUserById(cat)
for ca, va in val["i"] do
local i, dmg = 1, 5
if DPSMateDamageTaken[1][cat] then
if DPSMateDamageTaken[1][cat][va[2]] then
if DPSMateDamageTaken[1][cat][va[2]][va[3]] then
dmg = DPSMateDamageTaken[1][cat][va[2]][va[3]][14]
if dmg>DPSMate.DB.FixedShieldAmounts[DPSMate:GetAbilityById(va[5])] then
dmg = DPSMate.DB.FixedShieldAmounts[DPSMate:GetAbilityById(va[5])]
end
end
end
end
if dmg==5 or dmg==0 then
dmg = ceil((1/15)*((DPSMateUser[ownername][8] or 60)/60)*DPSMate.DB.FixedShieldAmounts[DPSMate:GetAbilityById(va[5])]*0.33)
end
if va[4] then
dmg = dmg + va[4]
end
if dmg>0 then
while true do
if (not newArr[i]) then
tinsert(newArr, i, {va[1], dmg})
break
else
if newArr[i][1] > va[1] then
tinsert(newArr, i, {va[1], dmg})
break
end
end
i=i+1
end
end
end
end
return newArr
end
function DPSMate.Modules.DetailsAbsorbsTakenTotal:AddLinesButton(uid, obj)
local sumTable = self:SortLineTable(uid)
sumTable = self:GetSummarizedTable(sumTable)
local Max = DPSMate:GetMaxValue(sumTable, 2)
if Max > totMax then
g:SetGridSpacing(totTime/10,Max/7)
end
g:AddDataSeries(sumTable, {ColorTable[1], {}}, {})
tinsert(buttons, {ColorTable[1], uid, sumTable})
tremove(ColorTable, 1)
g2:Hide()
DPSMate_Details_AbsorbsTakenTotal_DiagramLine:SetWidth(770)
DPSMate_Details_AbsorbsTakenTotal_DiagramLegend:Show()
g:Show()
toggle=false
obj.act = true
self:LoadLegendButtons()
end
function DPSMate.Modules.DetailsAbsorbsTakenTotal:RemoveLinesButton(uid, obj)
obj.act = false
g:ResetData()
for cat, val in pairs(buttons) do
if val[2]==uid then
tinsert(ColorTable, 1, val[1])
tremove(buttons, cat)
break
end
end
local Max = totMax
g:AddDataSeries(totSumTable,{{1.0,0.0,0.0,0.8}, {1.0,1.0,0.0,0.8}}, {})
for cat, val in pairs(buttons) do
g:AddDataSeries(val[3], {val[1], {}}, {})
local temp = DPSMate:GetMaxValue(val[3], 2)
if temp>Max then
Max = temp
end
end
g:SetGridSpacing(totTime/10,Max/7)
g2:Hide()
DPSMate_Details_AbsorbsTakenTotal_DiagramLine:SetWidth(770)
DPSMate_Details_AbsorbsTakenTotal_DiagramLegend:Show()
g:Show()
toggle = false
self:LoadLegendButtons()
end
function DPSMate.Modules.DetailsAbsorbsTakenTotal:LoadLegendButtons()
for i=1, 30 do
_G("DPSMate_Details_AbsorbsTakenTotal_DiagramLegend_Child_C"..i):Hide()
end
for cat, val in buttons do
local name = DPSMate:GetUserById(val[2])
local font = _G("DPSMate_Details_AbsorbsTakenTotal_DiagramLegend_Child_C"..cat.."_Font")
font:SetText(name)
font:SetTextColor(DPSMate:GetClassColor(DPSMateUser[name][2]))
_G("DPSMate_Details_AbsorbsTakenTotal_DiagramLegend_Child_C"..cat.."_SwatchBg"):SetTexture(val[1][1],val[1][2],val[1][3],1)
_G("DPSMate_Details_AbsorbsTakenTotal_DiagramLegend_Child_C"..cat):Show()
end
end
function DPSMate.Modules.DetailsAbsorbsTakenTotal:RoundToH(val)
if val>100 then
return 100
end
return val
end
function DPSMate.Modules.DetailsAbsorbsTakenTotal:CompareVal(x,y)
if x>y then
return y
end
return x
end
function DPSMate.Modules.DetailsAbsorbsTakenTotal:LoadTable()
local arr, total = self:GetTableValues()
local i = 0
for i=1, 30 do
_G("DPSMate_Details_AbsorbsTakenTotal_PlayerList_Child_R"..i):Hide()
_G("DPSMate_Details_AbsorbsTakenTotal_PlayerList_Child_R"..i.."_CB"):SetChecked(false)
_G("DPSMate_Details_AbsorbsTakenTotal_PlayerList_Child_R"..i.."_CB").act = false
end
for cat, val in arr do
if DPSMateUser[val[1]][4] then
i=i+1
else
if (cat-i)>30 then break end
local r,g,b = DPSMate:GetClassColor(DPSMateUser[val[1]][2])
_G("DPSMate_Details_AbsorbsTakenTotal_PlayerList_Child"):SetHeight((cat-i)*30)
_G("DPSMate_Details_AbsorbsTakenTotal_PlayerList_Child_R"..(cat-i).."_Name"):SetText(val[1])
_G("DPSMate_Details_AbsorbsTakenTotal_PlayerList_Child_R"..(cat-i).."_Name"):SetTextColor(r,g,b)
_G("DPSMate_Details_AbsorbsTakenTotal_PlayerList_Child_R"..(cat-i).."_Amount"):SetText(val[2])
_G("DPSMate_Details_AbsorbsTakenTotal_PlayerList_Child_R"..(cat-i).."_StatusBar"):SetValue(100*val[2]/arr[1][2])
_G("DPSMate_Details_AbsorbsTakenTotal_PlayerList_Child_R"..(cat-i).."_StatusBar"):SetStatusBarColor(r,g,b, 1)
_G("DPSMate_Details_AbsorbsTakenTotal_PlayerList_Child_R"..(cat-i).."_AmountPerc"):SetText(strformat("%.1f", 100*val[2]/total).."%")
_G("DPSMate_Details_AbsorbsTakenTotal_PlayerList_Child_R"..(cat-i).."_All"):SetText(strformat("%.1f", 100*val[3]/val[2]).."%")
_G("DPSMate_Details_AbsorbsTakenTotal_PlayerList_Child_R"..(cat-i).."_FIR"):SetText(strformat("%.1f", 100*val[4]/val[2]).."%")
_G("DPSMate_Details_AbsorbsTakenTotal_PlayerList_Child_R"..(cat-i).."_FRR"):SetText(strformat("%.1f", 100*val[5]/val[2]).."%")
_G("DPSMate_Details_AbsorbsTakenTotal_PlayerList_Child_R"..(cat-i).."_NAR"):SetText(strformat("%.1f", 100*val[6]/val[2]).."%")
_G("DPSMate_Details_AbsorbsTakenTotal_PlayerList_Child_R"..(cat-i).."_SHR"):SetText(strformat("%.1f", 100*val[7]/val[2]).."%")
_G("DPSMate_Details_AbsorbsTakenTotal_PlayerList_Child_R"..(cat-i).."_ARR"):SetText(strformat("%.1f", 100*val[8]/val[2]).."%")
_G("DPSMate_Details_AbsorbsTakenTotal_PlayerList_Child_R"..(cat-i)).user = val[1]
_G("DPSMate_Details_AbsorbsTakenTotal_PlayerList_Child_R"..(cat-i)):Show()
end
end
end
function DPSMate.Modules.DetailsAbsorbsTakenTotal:ShowTooltip(user, obj)
local a,b,c = DPSMate.Modules.AbsorbsTaken:EvalTable(DPSMateUser[user], curKey)
local pet = ""
GameTooltip:SetOwner(obj, "TOPLEFT")
GameTooltip:AddLine(user.."'s "..strlower(DPSMate.L["absorbeddmg"]), 1,1,1)
for i=1, DPSMateSettings["subviewrows"] do
if not a[i] then break end
GameTooltip:AddDoubleLine(i..". "..DPSMate:GetUserById(a[i]),c[i][1].." ("..strformat("%2.f", 100*c[i][1]/b).."%)",1,1,1,1,1,1)
for p=1, 3 do
if not c[i][2][p] then break end
GameTooltip:AddDoubleLine(" "..p..". "..DPSMate:GetAbilityById(c[i][2][p]),c[i][3][p][1].." ("..strformat("%.2f", 100*c[i][3][p][1]/c[i][1]).."%)",0.5,0.5,0.5,0.5,0.5,0.5)
end
end
GameTooltip:Show()
end
| gpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/wearables/armor/marine/armor_marine_chest_plate.lua | 1 | 5852 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_wearables_armor_marine_armor_marine_chest_plate = object_tangible_wearables_armor_marine_shared_armor_marine_chest_plate:new {
templateType = ARMOROBJECT,
faction = "Rebel",
playerRaces = { "object/creature/player/bothan_male.iff",
"object/creature/player/bothan_female.iff",
"object/creature/player/human_male.iff",
"object/creature/player/human_female.iff",
"object/creature/player/moncal_male.iff",
"object/creature/player/moncal_female.iff",
"object/creature/player/rodian_male.iff",
"object/creature/player/rodian_female.iff",
"object/creature/player/sullustan_male.iff",
"object/creature/player/sullustan_female.iff",
"object/creature/player/trandoshan_male.iff",
"object/creature/player/trandoshan_female.iff",
"object/creature/player/twilek_male.iff",
"object/creature/player/twilek_female.iff",
"object/creature/player/zabrak_male.iff",
"object/creature/player/zabrak_female.iff",
"object/mobile/vendor/aqualish_female.iff",
"object/mobile/vendor/aqualish_male.iff",
"object/mobile/vendor/bith_female.iff",
"object/mobile/vendor/bith_male.iff",
"object/mobile/vendor/bothan_female.iff",
"object/mobile/vendor/bothan_male.iff",
"object/mobile/vendor/devaronian_male.iff",
"object/mobile/vendor/gran_male.iff",
"object/mobile/vendor/human_female.iff",
"object/mobile/vendor/human_male.iff",
"object/mobile/vendor/ishi_tib_male.iff",
"object/mobile/vendor/moncal_female.iff",
"object/mobile/vendor/moncal_male.iff",
"object/mobile/vendor/nikto_male.iff",
"object/mobile/vendor/quarren_male.iff",
"object/mobile/vendor/rodian_female.iff",
"object/mobile/vendor/rodian_male.iff",
"object/mobile/vendor/sullustan_female.iff",
"object/mobile/vendor/sullustan_male.iff",
"object/mobile/vendor/trandoshan_female.iff",
"object/mobile/vendor/trandoshan_male.iff",
"object/mobile/vendor/twilek_female.iff",
"object/mobile/vendor/twilek_male.iff",
"object/mobile/vendor/weequay_male.iff",
"object/mobile/vendor/zabrak_female.iff",
"object/mobile/vendor/zabrak_male.iff" },
objectMenuComponent = "ArmorObjectMenuComponent",
vulnerability = BLAST + ELECTRICITY + HEAT + COLD + ACID + LIGHTSABER,
specialResists = STUN,
-- These are default Blue Frog stats
healthEncumbrance = 300,
actionEncumbrance = 150,
mindEncumbrance = 100,
maxCondition = 30000,
-- LIGHT, MEDIUM, HEAVY
rating = LIGHT,
kinetic = 50,
energy = 50,
electricity = 0,
stun = 50,
blast = 20,
heat = 10,
cold = 10,
acid = 0,
lightSaber = 0,
numberExperimentalProperties = {1, 1, 1, 1, 2, 2, 2, 2, 2, 1, 1, 2, 1},
experimentalProperties = {"XX", "XX", "XX", "XX", "OQ", "SR", "OQ", "UT", "MA", "OQ", "MA", "OQ", "MA", "OQ", "XX", "XX", "OQ", "SR", "XX"},
experimentalWeights = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
experimentalGroupTitles = {"null", "null", "null", "exp_durability", "exp_quality", "exp_resistance", "exp_durability", "exp_durability", "exp_durability", "null", "null", "exp_resistance", "null"},
experimentalSubGroupTitles = {"null", "null", "sockets", "hit_points", "armor_effectiveness", "armor_integrity", "armor_health_encumbrance", "armor_action_encumbrance", "armor_mind_encumbrance", "armor_rating", "armor_special_type", "armor_special_effectiveness", "armor_special_integrity"},
experimentalMin = {0, 0, 0, 1000, 1, 30000, 300, 150, 100, 1, 0, 0, 0},
experimentalMax = {0, 0, 0, 1000, 40, 50000, 100, 40, 15, 1, 0, 0, 0},
experimentalPrecision = {0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0},
experimentalCombineType = {0, 0, 4, 1, 1, 1, 1, 1, 1, 4, 4, 4, 1},
}
ObjectTemplates:addTemplate(object_tangible_wearables_armor_marine_armor_marine_chest_plate, "object/tangible/wearables/armor/marine/armor_marine_chest_plate.iff")
| agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/item/item_container_armor.lua | 3 | 2216 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_item_item_container_armor = object_static_item_shared_item_container_armor:new {
}
ObjectTemplates:addTemplate(object_static_item_item_container_armor, "object/static/item/item_container_armor.iff")
| agpl-3.0 |
fire/Urho3D-1 | Source/ThirdParty/toluapp/src/bin/lua/declaration.lua | 24 | 15117 | -- tolua: declaration class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance, support, updates,
-- enhancements, or modifications.
-- Modified by Yao Wei Tjong for Urho3D
-- Declaration class
-- Represents variable, function, or argument declaration.
-- Stores the following fields:
-- mod = type modifiers
-- type = type
-- ptr = "*" or "&", if representing a pointer or a reference
-- name = name
-- dim = dimension, if a vector
-- def = default value, if any (only for arguments)
-- ret = "*" or "&", if value is to be returned (only for arguments)
classDeclaration = {
mod = '',
type = '',
ptr = '',
name = '',
dim = '',
ret = '',
def = ''
}
classDeclaration.__index = classDeclaration
setmetatable(classDeclaration,classFeature)
-- Create an unique variable name
function create_varname ()
if not _varnumber then _varnumber = 0 end
_varnumber = _varnumber + 1
return "tolua_var_".._varnumber
end
-- Check declaration name
-- It also identifies default values
function classDeclaration:checkname ()
if strsub(self.name,1,1) == '[' and not findtype(self.type) then
self.name = self.type..self.name
local m = split(self.mod,'%s%s*')
self.type = m[m.n]
self.mod = concat(m,1,m.n-1)
end
local t = split(self.name,'=')
if t.n==2 then
self.name = t[1]
self.def = find_enum_var(t[t.n])
end
local b,e,d = strfind(self.name,"%[(.-)%]")
if b then
self.name = strsub(self.name,1,b-1)
self.dim = find_enum_var(d)
end
if self.type ~= '' and self.type ~= 'void' and self.name == '' then
self.name = create_varname()
elseif self.kind=='var' then
if self.type=='' and self.name~='' then
self.type = self.type..self.name
self.name = create_varname()
elseif findtype(self.name) then
if self.type=='' then self.type = self.name
else self.type = self.type..' '..self.name end
self.name = create_varname()
end
end
-- adjust type of string
if self.type == 'char' and self.dim ~= '' then
self.type = 'char*'
end
if self.kind and self.kind == 'var' then
self.name = string.gsub(self.name, ":.*$", "") -- ???
end
end
-- Check declaration type
-- Substitutes typedef's.
function classDeclaration:checktype ()
-- check if there is a pointer to basic type
local basic = isbasic(self.type)
if self.kind == 'func' and basic=='number' and string.find(self.ptr, "%*") then
self.type = '_userdata'
self.ptr = ""
end
if basic and self.ptr~='' then
self.ret = self.ptr
self.ptr = nil
if isbasic(self.type) == 'number' then
self.return_userdata = true
end
end
-- check if there is array to be returned
if self.dim~='' and self.ret~='' then
error('#invalid parameter: cannot return an array of values')
end
-- restore 'void*' and 'string*'
if self.type == '_userdata' then self.type = 'void*'
elseif self.type == '_cstring' then self.type = 'char*'
elseif self.type == '_lstate' then self.type = 'lua_State*'
end
-- resolve types inside the templates
if self.type then
self.type = resolve_template_types(self.type)
end
--
-- -- if returning value, automatically set default value
-- if self.ret ~= '' and self.def == '' then
-- self.def = '0'
-- end
--
end
function resolve_template_types(type)
if isbasic(type) then
return type
end
local b,_,m = string.find(type, "(%b<>)")
if b then
m = split_c_tokens(string.sub(m, 2, -2), ",")
for i=1, table.getn(m) do
m[i] = string.gsub(m[i],"%s*([%*&])", "%1")
if not isbasic(m[i]) then
if not isenum(m[i]) then _, m[i] = applytypedef("", m[i]) end
m[i] = findtype(m[i]) or m[i]
m[i] = resolve_template_types(m[i])
end
end
local b,i
type,b,i = break_template(type)
--print("concat is ",concat(m, 1, m.n))
local template_part = "<"..concat(m, 1, m.n, ",")..">"
type = rebuild_template(type, b, template_part)
type = string.gsub(type, ">>", "> >")
end
return type
end
function break_template(s)
local b,e,timpl = string.find(s, "(%b<>)")
if timpl then
s = string.gsub(s, "%b<>", "")
return s, b, timpl
else
return s, 0, nil
end
end
function rebuild_template(s, b, timpl)
if b == 0 then
return s
end
return string.sub(s, 1, b-1)..timpl..string.sub(s, b, -1)
end
-- Print method
function classDeclaration:print (ident,close)
print(ident.."Declaration{")
print(ident.." mod = '"..self.mod.."',")
print(ident.." type = '"..self.type.."',")
print(ident.." ptr = '"..self.ptr.."',")
print(ident.." name = '"..self.name.."',")
print(ident.." dim = '"..self.dim.."',")
print(ident.." def = '"..self.def.."',")
print(ident.." ret = '"..self.ret.."',")
print(ident.."}"..close)
end
-- check if array of values are returned to Lua
function classDeclaration:requirecollection (t)
if self.mod ~= 'const' and
self.dim and self.dim ~= '' and
not isbasic(self.type) and
self.ptr == '' and self:check_public_access() then
local type = gsub(self.type,"%s*const%s+","")
t[type] = "tolua_collect_" .. clean_template(type)
return true
end
return false
end
-- declare tag
function classDeclaration:decltype ()
self.type = typevar(self.type)
if strfind(self.mod,'const') then
self.type = 'const '..self.type
self.mod = gsub(self.mod,'const%s*','')
end
end
-- output type checking
function classDeclaration:outchecktype (narg)
local def
local t = isbasic(self.type)
if self.def~='' then
def = 1
else
def = 0
end
if self.dim ~= '' then
--if t=='string' then
-- return 'tolua_isstringarray(tolua_S,'..narg..','..def..',&tolua_err)'
--else
return '!tolua_istable(tolua_S,'..narg..',0,&tolua_err)'
--end
elseif t then
return '!tolua_is'..t..'(tolua_S,'..narg..','..def..',&tolua_err)'
else
local is_func = get_is_function(self.type)
if self.ptr == '&' or self.ptr == '' then
return '(tolua_isvaluenil(tolua_S,'..narg..',&tolua_err) || !'..is_func..'(tolua_S,'..narg..',"'..self.type..'",'..def..',&tolua_err))'
else
return '!'..is_func..'(tolua_S,'..narg..',"'..self.type..'",'..def..',&tolua_err)'
end
end
end
function classDeclaration:builddeclaration (narg, cplusplus)
local array = self.dim ~= '' and tonumber(self.dim)==nil
local line = ""
local ptr = ''
local mod
local type = self.type
local nctype = gsub(self.type,'const%s+','')
if self.dim ~= '' then
type = gsub(self.type,'const%s+','') -- eliminates const modifier for arrays
end
if self.ptr~='' and not isbasic(type) then ptr = '*' end
line = concatparam(line," ",self.mod,type,ptr)
if array then
line = concatparam(line,'*')
end
line = concatparam(line,self.name)
if self.dim ~= '' then
if tonumber(self.dim)~=nil then
line = concatparam(line,'[',self.dim,'];')
else
if cplusplus then
line = concatparam(line,' = Mtolua_new_dim(',type,ptr,', '..self.dim..');')
else
line = concatparam(line,' = (',type,ptr,'*)',
'malloc((',self.dim,')*sizeof(',type,ptr,'));')
end
end
else
local t = isbasic(type)
line = concatparam(line,' = ')
if t == 'state' then
line = concatparam(line, 'tolua_S;')
else
--print("t is "..tostring(t)..", ptr is "..tostring(self.ptr))
if t == 'number' and string.find(self.ptr, "%*") then
t = 'userdata'
end
if not t and ptr=='' then line = concatparam(line,'*') end
line = concatparam(line,'((',self.mod,type)
if not t then
line = concatparam(line,'*')
end
line = concatparam(line,') ')
if isenum(nctype) then
line = concatparam(line,'(int) ')
end
local def = 0
if self.def ~= '' then
def = self.def
if (ptr == '' or self.ptr == '&') and not t then
def = "(void*)&(const "..type..")"..def
end
end
if t then
line = concatparam(line,'tolua_to'..t,'(tolua_S,',narg,',',def,'));')
else
local to_func = get_to_function(type)
line = concatparam(line,to_func..'(tolua_S,',narg,',',def,'));')
end
end
end
return line
end
-- Declare variable
function classDeclaration:declare (narg)
if self.dim ~= '' and tonumber(self.dim)==nil then
output('#ifdef __cplusplus\n')
output(self:builddeclaration(narg,true))
output('#else\n')
output(self:builddeclaration(narg,false))
output('#endif\n')
else
output(self:builddeclaration(narg,false))
end
end
-- Get parameter value
function classDeclaration:getarray (narg)
if self.dim ~= '' then
local type = gsub(self.type,'const ','')
output(' {')
output('#ifndef TOLUA_RELEASE\n')
local def; if self.def~='' then def=1 else def=0 end
local t = isbasic(type)
if (t) then
output(' if (!tolua_is'..t..'array(tolua_S,',narg,',',self.dim,',',def,',&tolua_err))')
else
output(' if (!tolua_isusertypearray(tolua_S,',narg,',"',type,'",',self.dim,',',def,',&tolua_err))')
end
output(' goto tolua_lerror;')
output(' else\n')
output('#endif\n')
output(' {')
output(' int i;')
output(' for(i=0; i<'..self.dim..';i++)')
local t = isbasic(type)
local ptr = ''
if self.ptr~='' then ptr = '*' end
output(' ',self.name..'[i] = ')
if not t and ptr=='' then output('*') end
output('((',type)
if not t then
output('*')
end
output(') ')
local def = 0
if self.def ~= '' then def = self.def end
if t then
output('tolua_tofield'..t..'(tolua_S,',narg,',i+1,',def,'));')
else
output('tolua_tofieldusertype(tolua_S,',narg,',i+1,',def,'));')
end
output(' }')
output(' }')
end
end
-- Get parameter value
function classDeclaration:setarray (narg)
if not strfind(self.type,'const%s+') and self.dim ~= '' then
local type = gsub(self.type,'const ','')
output(' {')
output(' int i;')
output(' for(i=0; i<'..self.dim..';i++)')
local t,ct = isbasic(type)
if t then
output(' tolua_pushfield'..t..'(tolua_S,',narg,',i+1,(',ct,')',self.name,'[i]);')
else
if self.ptr == '' then
output(' {')
output('#ifdef __cplusplus\n')
output(' void* tolua_obj = Mtolua_new((',type,')(',self.name,'[i]));')
output(' tolua_pushfieldusertype_and_takeownership(tolua_S,',narg,',i+1,tolua_obj,"',type,'");')
output('#else\n')
output(' void* tolua_obj = tolua_copy(tolua_S,(void*)&',self.name,'[i],sizeof(',type,'));')
output(' tolua_pushfieldusertype(tolua_S,',narg,',i+1,tolua_obj,"',type,'");')
output('#endif\n')
output(' }')
else
output(' tolua_pushfieldusertype(tolua_S,',narg,',i+1,(void*)',self.name,'[i],"',type,'");')
end
end
output(' }')
end
end
-- Free dynamically allocated array
function classDeclaration:freearray ()
if self.dim ~= '' and tonumber(self.dim)==nil then
output('#ifdef __cplusplus\n')
output(' Mtolua_delete_dim(',self.name,');')
output('#else\n')
output(' free(',self.name,');')
output('#endif\n')
end
end
-- Pass parameter
function classDeclaration:passpar ()
if self.ptr=='&' and not isbasic(self.type) then
output('*'..self.name)
elseif self.ret=='*' then
output('&'..self.name)
else
output(self.name)
end
end
-- Return parameter value
function classDeclaration:retvalue ()
if self.ret ~= '' then
local t,ct = isbasic(self.type)
if t and t~='' then
output(' tolua_push'..t..'(tolua_S,(',ct,')'..self.name..');')
else
local push_func = get_push_function(self.type)
output(' ',push_func,'(tolua_S,(void*)'..self.name..',"',self.type,'");')
end
return 1
end
return 0
end
-- Internal constructor
function _Declaration (t)
setmetatable(t,classDeclaration)
t:buildnames()
t:checkname()
t:checktype()
local ft = findtype(t.type) or t.type
if not isenum(ft) then
t.mod, t.type = applytypedef(t.mod, ft)
end
if t.kind=="var" and (string.find(t.mod, "tolua_property%s") or string.find(t.mod, "tolua_property$")) then
t.mod = string.gsub(t.mod, "tolua_property", "tolua_property__"..get_property_type())
end
return t
end
-- Constructor
-- Expects the string declaration.
-- The kind of declaration can be "var" or "func".
function Declaration (s,kind,is_parameter)
-- eliminate spaces if default value is provided
s = gsub(s,"%s*=%s*","=")
s = gsub(s, "%s*<", "<")
local defb,tmpdef
defb,_,tmpdef = string.find(s, "(=.*)$")
if defb then
s = string.gsub(s, "=.*$", "")
else
tmpdef = ''
end
if kind == "var" then
-- check the form: void
if s == '' or s == 'void' then
return _Declaration{type = 'void', kind = kind, is_parameter = is_parameter}
end
end
-- check the form: mod type*& name
local t = split_c_tokens(s,'%*%s*&')
if t.n == 2 then
if kind == 'func' then
error("#invalid function return type: "..s)
end
--local m = split(t[1],'%s%s*')
local m = split_c_tokens(t[1],'%s+')
return _Declaration{
name = t[2]..tmpdef,
ptr = '*',
ret = '&',
--type = rebuild_template(m[m.n], tb, timpl),
type = m[m.n],
mod = concat(m,1,m.n-1),
is_parameter = is_parameter,
kind = kind
}
end
-- check the form: mod type** name
t = split_c_tokens(s,'%*%s*%*')
if t.n == 2 then
if kind == 'func' then
error("#invalid function return type: "..s)
end
--local m = split(t[1],'%s%s*')
local m = split_c_tokens(t[1],'%s+')
return _Declaration{
name = t[2]..tmpdef,
ptr = '*',
ret = '*',
--type = rebuild_template(m[m.n], tb, timpl),
type = m[m.n],
mod = concat(m,1,m.n-1),
is_parameter = is_parameter,
kind = kind
}
end
-- check the form: mod type& name
t = split_c_tokens(s,'&')
if t.n == 2 then
--local m = split(t[1],'%s%s*')
local m = split_c_tokens(t[1],'%s+')
return _Declaration{
name = t[2]..tmpdef,
ptr = '&',
--type = rebuild_template(m[m.n], tb, timpl),
type = m[m.n],
mod = concat(m,1,m.n-1),
is_parameter = is_parameter,
kind = kind
}
end
-- Urho3D: comply with stricter escape sequence
-- check the form: mod type* name
local s1 = gsub(s,"(%b\\[\\])",function (n) return gsub(n,'%*','\1') end)
t = split_c_tokens(s1,'%*')
if t.n == 2 then
t[2] = gsub(t[2],'\1','%*') -- restore * in dimension expression
--local m = split(t[1],'%s%s*')
local m = split_c_tokens(t[1],'%s+')
return _Declaration{
name = t[2]..tmpdef,
ptr = '*',
type = m[m.n],
--type = rebuild_template(m[m.n], tb, timpl),
mod = concat(m,1,m.n-1) ,
is_parameter = is_parameter,
kind = kind
}
end
if kind == 'var' then
-- check the form: mod type name
--t = split(s,'%s%s*')
t = split_c_tokens(s,'%s+')
local v
if findtype(t[t.n]) then v = create_varname() else v = t[t.n]; t.n = t.n-1 end
return _Declaration{
name = v..tmpdef,
--type = rebuild_template(t[t.n], tb, timpl),
type = t[t.n],
mod = concat(t,1,t.n-1),
is_parameter = is_parameter,
kind = kind
}
else -- kind == "func"
-- check the form: mod type name
--t = split(s,'%s%s*')
t = split_c_tokens(s,'%s+')
local v = t[t.n] -- last word is the function name
local tp,md
if t.n>1 then
tp = t[t.n-1]
md = concat(t,1,t.n-2)
end
--if tp then tp = rebuild_template(tp, tb, timpl) end
return _Declaration{
name = v,
type = tp,
mod = md,
is_parameter = is_parameter,
kind = kind
}
end
end
| mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.