Class VehicleScript
java.lang.Object
zombie.scripting.objects.BaseScriptObject
zombie.scripting.objects.VehicleScript
- All Implemented Interfaces:
IModelAttachmentOwner
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal float[]
int
boolean
final ArrayList
<ModelAttachment> float
float
static final int
static final int
static final int
float
boolean
Fields inherited from class zombie.scripting.objects.BaseScriptObject
debugOnly, enabled
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttachment
(ModelAttachment attach) addAttachmentAt
(int index, ModelAttachment attach) addPhysicsShape
(String string) void
void
void
copyAreasFrom
(VehicleScript other, String spec) void
copyPartsFrom
(VehicleScript other, String spec) void
copyPassengersFrom
(VehicleScript other, String spec) void
copyPhysicsFrom
(VehicleScript vehicleScript1, String var2) void
copySoundFrom
(VehicleScript vehicleScript0, String string0) void
copyWheelsFrom
(VehicleScript other, String spec) float
getArea
(int index) getAreaById
(String id) int
getAttachment
(int index) int
org.joml.Vector3f
gnu.trove.list.array.TFloatArrayList
float
float
int
int
int
org.joml.Vector3f
org.joml.Vector2f
float
float
float
int
int
boolean
int
int
int
int
float
getMass()
int
getModel()
getModelById
(String id) getModelById
(String id, ArrayList<VehicleScript.Model> _models) getModelByIndex
(int index) int
org.joml.Vector3f
float
getName()
float
getPart
(int index) getPartById
(String id) int
getPassenger
(int index) int
int
org.joml.Vector3f
getPhysicsShape
(int index) int
float
int
float
int
getSeats()
org.joml.Vector2f
org.joml.Vector2f
getSkin
(int index) int
int
int
float
getSteeringClamp
(float speed) float
int
float
float
float
float
float
getWheel
(int index) getWheelById
(String id) int
float
boolean
boolean
boolean
boolean
boolean
hasZombieType
(String string) void
InitLoadPP
(String string) void
void
Loaded()
boolean
removeAttachment
(int index) removeAttachment
(ModelAttachment attach) removePhysicsShape
(int int0) void
setCarMechanicsOverlay
(String string) void
setCarModelName
(String string) void
setEngineRepairLevel
(int _engineRepairLevel) void
setEngineRPMType
(String _engineRPMType) void
setForcedHue
(float _forcedHue) void
setForcedSat
(float _forcedSat) void
setForcedVal
(float _forcedVal) void
setMechanicType
(int _mechanicType) void
setModelScale
(float scale) void
setOffroadEfficiency
(float _offroadEfficiency) void
setPlayerDamageProtection
(float _playerDamageProtection) void
setSeats
(int _seats) void
toBullet()
boolean
Methods inherited from class zombie.scripting.objects.BaseScriptObject
addLoadedScriptBody, calculateScriptVersion, debugString, getAllScriptLines, getBodyScriptLines, getLoadedScriptBodies, getLoadedScriptBodyCount, getModule, getObsolete, getParent, getScriptLines, getScriptObjectFullType, getScriptObjectName, getScriptObjectType, getScriptVersion, getVersion, isDebugOnly, isEnabled, LoadCommonBlock, LoadCommonBlock, LoadVector3, OnLoadedAfterLua, OnPostWorldDictionaryInit, OnScriptsLoaded, PreReload, reset, resetLoadedScriptBodies, setModule, setParent
-
Field Details
-
m_attachments
-
maxSpeed
public float maxSpeed -
maxSpeedReverse
public float maxSpeedReverse -
isSmallVehicle
public boolean isSmallVehicle -
spawnOffsetY
public float spawnOffsetY -
leftSirenCol
-
rightSirenCol
-
gearRatioCount
public int gearRatioCount -
gearRatio
public final float[] gearRatio -
textureMaskEnable
public boolean textureMaskEnable -
PHYSICS_SHAPE_BOX
public static final int PHYSICS_SHAPE_BOX- See Also:
-
PHYSICS_SHAPE_SPHERE
public static final int PHYSICS_SHAPE_SPHERE- See Also:
-
PHYSICS_SHAPE_MESH
public static final int PHYSICS_SHAPE_MESH- See Also:
-
-
Constructor Details
-
VehicleScript
public VehicleScript()
-
-
Method Details
-
InitLoadPP
- Overrides:
InitLoadPP
in classBaseScriptObject
-
Load
-
getFileName
-
Loaded
public void Loaded() -
toBullet
public void toBullet() -
copyAreasFrom
-
copyPartsFrom
-
copyPhysicsFrom
-
copyPassengersFrom
-
copySoundFrom
-
copyWheelsFrom
-
getName
-
getFullName
-
getFullType
-
getModel
-
getModelOffset
public org.joml.Vector3f getModelOffset() -
getModelScale
public float getModelScale() -
setModelScale
public void setModelScale(float scale) -
getModelCount
public int getModelCount() -
getModelByIndex
-
getModelById
-
getModelById
-
getAttachmentCount
public int getAttachmentCount() -
getAttachment
-
getAttachmentById
-
addAttachment
-
removeAttachment
-
addAttachmentAt
-
removeAttachment
-
beforeRenameAttachment
- Specified by:
beforeRenameAttachment
in interfaceIModelAttachmentOwner
-
afterRenameAttachment
- Specified by:
afterRenameAttachment
in interfaceIModelAttachmentOwner
-
getLightbar
-
getSounds
-
getHasSiren
public boolean getHasSiren() -
getExtents
public org.joml.Vector3f getExtents() -
getPhysicsChassisShape
public org.joml.Vector3f getPhysicsChassisShape() -
hasPhysicsChassisShape
public boolean hasPhysicsChassisShape() -
useChassisPhysicsCollision
public boolean useChassisPhysicsCollision() -
getShadowExtents
public org.joml.Vector2f getShadowExtents() -
getShadowOffset
public org.joml.Vector2f getShadowOffset() -
getExtentsOffset
public org.joml.Vector2f getExtentsOffset() -
getMass
public float getMass() -
getCenterOfMassOffset
public org.joml.Vector3f getCenterOfMassOffset() -
getEngineForce
public float getEngineForce() -
getEngineIdleSpeed
public float getEngineIdleSpeed() -
getEngineQuality
public int getEngineQuality() -
getEngineLoudness
public int getEngineLoudness() -
getRollInfluence
public float getRollInfluence() -
getSteeringIncrement
public float getSteeringIncrement() -
getSteeringClamp
public float getSteeringClamp(float speed) -
getSuspensionStiffness
public float getSuspensionStiffness() -
getSuspensionDamping
public float getSuspensionDamping() -
getSuspensionCompression
public float getSuspensionCompression() -
getSuspensionRestLength
public float getSuspensionRestLength() -
getSuspensionTravel
public float getSuspensionTravel() -
getWheelFriction
public float getWheelFriction() -
getWheelCount
public int getWheelCount() -
getWheel
-
getWheelById
-
getIndexOfWheelById
-
getPassengerCount
public int getPassengerCount() -
getPassenger
-
getPassengerById
-
getPassengerIndex
-
getPhysicsShapeCount
public int getPhysicsShapeCount() -
getPhysicsShape
-
addPhysicsShape
-
removePhysicsShape
-
getFrontEndHealth
public int getFrontEndHealth() -
getRearEndHealth
public int getRearEndHealth() -
getStorageCapacity
public int getStorageCapacity() -
getTextures
-
getSkinCount
public int getSkinCount() -
getSkin
-
getAreaCount
public int getAreaCount() -
getArea
-
getAreaById
-
getIndexOfAreaById
-
getPartCount
public int getPartCount() -
getPart
-
getPartById
-
getIndexOfPartById
-
globMatch
-
getGearRatioCount
public int getGearRatioCount() -
getSeats
public int getSeats() -
setSeats
public void setSeats(int _seats) -
getMechanicType
public int getMechanicType() -
setMechanicType
public void setMechanicType(int _mechanicType) -
getEngineRepairLevel
public int getEngineRepairLevel() -
getHeadlightConfigLevel
public int getHeadlightConfigLevel() -
setEngineRepairLevel
public void setEngineRepairLevel(int _engineRepairLevel) -
getPlayerDamageProtection
public float getPlayerDamageProtection() -
setPlayerDamageProtection
public void setPlayerDamageProtection(float _playerDamageProtection) -
getForcedHue
public float getForcedHue() -
setForcedHue
public void setForcedHue(float _forcedHue) -
getForcedSat
public float getForcedSat() -
setForcedSat
public void setForcedSat(float _forcedSat) -
getForcedVal
public float getForcedVal() -
setForcedVal
public void setForcedVal(float _forcedVal) -
getEngineRPMType
-
setEngineRPMType
-
getOffroadEfficiency
public float getOffroadEfficiency() -
setOffroadEfficiency
public void setOffroadEfficiency(float _offroadEfficiency) -
getCrawlOffsets
public gnu.trove.list.array.TFloatArrayList getCrawlOffsets() -
getAnimalTrailerSize
public float getAnimalTrailerSize() -
getZombieType
-
getSpecialKeyRing
-
getRandomZombieType
-
getRandomSpecialKeyRing
-
hasSpecialKeyRing
public boolean hasSpecialKeyRing() -
getFirstZombieType
-
hasZombieType
-
notKillCrops
public boolean notKillCrops() -
hasLighter
public boolean hasLighter() -
getCarMechanicsOverlay
-
setCarMechanicsOverlay
-
getCarModelName
-
setCarModelName
-
getSpecialLootChance
public int getSpecialLootChance() -
getSpecialKeyRingChance
public int getSpecialKeyRingChance()
-