Added To_Float to fixed point class. This is to help with certain house values to/from Lua but may have other uses.

Added ability to create objects out of thin air, and force factories to produce units.

Added ability to issue movement commands to units.

Updated object cache system to use an incremental UID for retrieval / passing ID back to the script, as ID collisions were occuring.
This commit is contained in:
nev6502
2020-06-28 15:35:10 -06:00
parent 19569faf2b
commit 678d784004
5 changed files with 2302 additions and 355 deletions
+61 -3
View File
@@ -160,7 +160,21 @@
MIG=3, -- MIG Attack Plane
YAK=4, -- Yak Attack Plane
HELI=5, -- Longbow Helicopter
HIND=6, -- Hind Helicopter
HIND=6 -- Hind Helicopter
}
-- *********************************************************
-- * *
-- * Vessels *
-- * *
-- *********************************************************
VesselTypes={
SS=0, -- Submarine
DD=1, -- Destroyer
CA=2, -- Cruiser
LST=3, -- Land Sea Tank (transport)
PT=4 -- Gun Boat
}
-- *********************************************************
@@ -270,10 +284,10 @@
-- *********************************************************
-- * *
-- * Attribite Types *
-- * Obejct Attributes *
-- * *
-- *********************************************************
Attributes = {
ObjectAttributes = {
Type=0,
Strength=1, -- Object attribute
MaxStrength=2, -- Definition attribute
@@ -320,6 +334,50 @@
IsDog=37
}
-- *********************************************************
-- * *
-- * House Attributes *
-- * *
-- *********************************************************
HouseAttributes = {
IQ = 0,
TechLevel =1,
IsHuman=2,
FirepowerBias=3,
GroundspeedBias=4,
ArmorBias=5,
ROFBias=6,
CostBias=7,
RepairDelay=8,
BuildDelay=9,
Started=10,
Alerted=11,
BaseBuilding=12,
Discovered=13,
Capacity=14,
Tiberium=15,
Credits=16,
AlertTimer=17,
RepairTimer=18,
Points=19,
DestroyedBuildings=20,
DestroyedVehicles=21,
DestroyedInfantry=22,
DestroyedAircraft=23,
DestroyedVessels=24,
CapturedBuildings=25,
Crates=26,
BuildingFactories=27,
VehicleFactories=28,
InfantryFactories=29,
AircraftFactories=30,
VesselFactories=31,
Power=32,
Drain=33,
LastAttacker=34
}
-- *********************************************************
-- * *