80 const string Bind =
"bind";
85 const string Tag =
"tag";
87 const string STag =
"s_tag";
114 return string.Format(
"category:%1",
category);
129 return string.Format(
"tag:%1",
tag);
227 private void CEApi() {}
const string ALL_VEHICLE
All vehicles.
class CEItemProfile CEApi
API to interact with Central Economy.
proto native bool AvoidPlayer(vector vPos, float fDistance)
Check if there is a player within a radius.
const int ECE_EQUIP_CARGO
proto native void LootSetSpawnVolumeVisualisation(ESpawnVolumeVis mode)
"Spawn Volume Vis"
proto native void ToggleOverallStats(bool mode)
"Overall Stats"
proto native void LootExportClusters()
"<<< Export Clusters" / GetCEApi().ExportClusterData()
proto native void AnimalAmbientSpawn()
"Ambient Spawn"
proto native void LootSetDamageToOne()
"Set Damage = 1.0"
const string ALL_PROXY_ABANDONED
All abandoned loot spawns.
proto native void EconomyLog(string sLogType)
Outputs debug file to storage/log/*.csv.
proto native CEApi GetCEApi()
Get the CE API.
proto native void EconomyMap(string sMapType)
Outputs debug file to storage/lmap/*.tga showing the current places this is spawned.
const int ECE_OBJECT_SWAP
proto native void ToggleDynamicEventStatus(bool mode)
"Dynamic Events Status"
const int ECE_EQUIP_ATTACHMENTS
proto native void RadiusLifetimeIncrease(vector vCenter, float fRadius, float fValue)
Process lifetime increase within radius by value (sec)
proto native void RadiusLifetimeReset(vector vCenter, float fRadius)
Process lifetime reset to default value from DB within radius.
proto native void LootToggleSpawnSetup(bool mode)
"Setup Vis"
const string ALL_INFECTED
All infected.
const string ALL_PROXY_DYNAMIC
All dynamic loot spawns.
const string ALL_ANIMAL
All animals.
proto native void SpawnVehicles(vector vPos, bool bShowCylinders=false, float fDefaultDistance=20)
Spawn all entities with vehicles category through CE.
const int ECE_NOSURFACEALIGN
proto native bool SpawnAnalyze(string sClassName)
Will emulate the spawning of the item which is being looked at and generate images (....
const int ECE_ROTATIONFLAGS
const int ECE_PLACE_ON_SURFACE
proto native void SpawnBuilding(vector vPos, bool bShowCylinders=false, float fDefaultDistance=20)
Spawn all entities with building category through CE.
proto native void AnimalToggleVisualisation(bool mode)
"Animal Vis"
const int ECE_EQUIP_CONTAINER
proto native void AnimalSpawn()
"Animal Spawn"
proto native void SpawnRotation(string sClassName, vector vPos, float fRange, int iCount, int iFlags)
Spawn an entity through CE.
proto native void LootDepleteLifetime()
"Deplete Lifetime"
proto native void ExportClusterData()
Generates "storage/export/mapgroupcluster.xml".
const int ECE_NOPERSISTENCY_WORLD
class EconomyOutputStrings OCCUPIED
proto native void LootToggleProxyEditing(bool mode)
proto native void SpawnPerfTest(string sClassName, int iCount)
Spawn an entity through CE, x amount of times in a grid.
proto native int GetCEGlobalInt(string varName)
Get int from globals.xml.
proto native void SpawnLoot(string sEvName, vector vPos, float fAngle, int iCount=1, float fRange=1)
Spawn an item through CE.
const int ECE_UPDATEPATHGRAPH
proto native void InfectedResetCleanup()
"Reset Cleanup"
proto native void LootToggleVolumeEditing(bool mode)
"Edit Volume"
proto native void InfectedSpawn()
"Infected Spawn"
proto native void LootRetraceGroupPoints()
"Re-Trace Group Points"
proto native void ToggleDynamicEventVisualisation(bool mode)
"Dynamic Events Vis"
proto native void LootExportAllGroups()
"Export All Groups >>>>" / GetCEApi.ExportProxyProto();
class EconomyOutputStrings OFF
const string ALL_PROXY_STATIC
All static loot spawns.
proto native void LootExportGroup()
"Export Group >>"
const string ALL_PROXY
All proxies.
proto native void DynamicEventSpawn()
"Dynamic Events Spawn"
proto native int CountPlayersWithinRange(vector vPos, float fRange)
Check if there is a vehicle within a radius.
proto native void InfectedToggleZoneInfo(bool mode)
"Infected Zone Info"
proto native Object SpawnSingleEntity(string sClassName, vector vPos)
Spawn an entity through CE.
proto native void LootDepleteAndDamage()
"Damage + Deplete"
const string ALL_LOOT
All loot.
proto native void ToggleClusterVisualisation(bool mode)
"Cluster Vis"
proto native void SpawnDynamic(vector vPos, bool bShowCylinders=true, float fDefaultDistance=0)
Spawn all entities with dynamic category through CE.
proto native void MarkCloseProxy(float fRadius, bool bAllSelections)
Invalidates loot spawn points which are closer than the radius supplied.
const int RF_DECORRECTION
proto native void TimeShift(float fShift)
Subtracts the supplied value from the current lifetime of all items in the world.
proto native void CleanMap()
Queue up the depleting of lifetime of everything in the world.
proto native string GetCEGlobalString(string varName)
Get string from globals.xml.
proto native void ExportSpawnData()
Regenerates "storage/spawnpoints.bin" if necessary.
proto native void ExportProxyData(vector vCenter=vector.Zero, float fRadius=0)
Generates "storage/export/mapgrouppos.xml".
const int ECE_DYNAMIC_PERSISTENCY
proto native void SpawnEntity(string sClassName, vector vPos, float fRange, int iCount)
Spawn an entity through CE.
proto native void LootExportMap()
"<<< Export Map" / GetCEApi.ExportProxyData(vector.Zero, 0);
const string ALL_ALL
Everything.
class EconomyOutputStrings ADAPTIVE
proto native void SpawnDE(string sEvName, vector vPos, float fAngle=-1)
Force spawn specific dynamic event.
proto native void InfectedToggleVisualisation(bool mode)
"Infected Vis"
proto native float GetCEGlobalFloat(string varName)
Get float from globals.xml.
proto native void PlatformStatTest()
const int ECE_IN_INVENTORY
proto native void ToggleLootVisualisation(bool mode)
"Loot Vis"
proto native void SpawnDEEx(string sEvName, vector vPos, float fAngle, int uFlags)
Force spawn specific dynamic event.
proto native void RadiusLifetimeDecrease(vector vCenter, float fRadius, float fValue)
Process lifetime decrease within radius by value (sec)
proto native void EconomyOutput(string sOutputType, float fRange)
Outputs debug logs into server log or rpt.
proto native void ExportProxyProto()
Generates "storage/export/mapgroupproto.xml".
proto native Entity SpawnGroup(string sGroupName, vector vPos, float fAngle=-1)
Force spawn specific prototype group + loot at position.
const string ALL_PLAYER
All players.
void ~EconomyMapStrings()
proto native void OverrideLifeTime(float fLifeTime)
Fills in the Debug Lifetime, which will be used for any new DE spawned.
class EconomyOutputStrings VOLUME
const int ECE_NOPERSISTENCY_CHAR
const int ECE_CREATEPHYSICS
proto native void ListCloseProxy(float fRadius)
Outputs a list of all loot points closer than specified radius.
proto native bool AvoidVehicle(vector vPos, float fDistance, string sDEName="")
Check if there is a vehicle within a radius.
proto native void ToggleVehicleAndWreckVisualisation(bool mode)
"Vehicle&Wreck Vis"
proto native void DynamicEventExport()
"Export Dyn Event >>"
class EconomyLogCategories EconomyMapStrings()
Special strings for CEApi.EconomyMap.
proto native void RemoveCloseProxy()
Removes all invalid points.
proto native float GetQuantityMin()
proto native float GetQuantityMax()
proto native int GetValueFlags()
proto native int GetNominal()
proto native float GetRestock()
proto native float GetQuantity()
proto native int GetMin()
proto native float GetLifetime()
proto native int GetCost()
proto native int GetUsageFlags()
Categories for CEApi.EconomyLog.
const string EconomyRespawn
void EconomyLogCategories()
const string InfectedZone
const string RespawnQueue
void ~EconomyLogCategories()
Special strings for CEApi.EconomyOutput.
const string ABANDONED
Lists loot spawns that have been marked as abandoned.
const string LINKS
Lists stats regarding which loot spawn) that are linked together and how many there are.
const string LOOT_SIZE
Lists the maxlootsize of all CE items.
const string WORLD
Lists the number of objects inside of categories.
void ~EconomyOutputStrings()
const string CLOSE
Lists loot spawns that are not abandoned and within the supplied range (< fRange, not equal)
const string STATUS
Lists overall CE stats.
const string SUSPICIOUS
Lists loot spawns that have more loot than their maximum + 4.
const string DE_CLOSE_POINT
Lists DE spawns that have positions that are within supplied range (< fRange, not equal)
void EconomyOutputStrings()
const string EMPTY
Lists loot spawns that are not abandoned but have no loot.