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 classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal float[]intbooleanfinal ArrayList<ModelAttachment> floatfloatstatic final intstatic final intstatic final intfloatboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttachment(ModelAttachment attach) addAttachmentAt(int index, ModelAttachment attach) addPhysicsShape(String string) voidvoidvoidcopyAreasFrom(VehicleScript other, String spec) voidcopyPartsFrom(VehicleScript other, String spec) voidcopyPassengersFrom(VehicleScript other, String spec) voidcopyPhysicsFrom(VehicleScript vehicleScript1, String var2) voidcopySoundFrom(VehicleScript vehicleScript0, String string0) voidcopyWheelsFrom(VehicleScript other, String spec) floatgetArea(int index) getAreaById(String id) intgetAttachment(int index) intgnu.trove.list.array.TFloatArrayListfloatfloatintintintfloatfloatfloatintintbooleanintintintintfloatgetMass()intgetModel()getModelById(String id) getModelById(String id, ArrayList<VehicleScript.Model> _models) getModelByIndex(int index) intfloatgetName()floatgetPart(int index) getPartById(String id) intgetPassenger(int index) intintgetPhysicsShape(int index) intfloatintfloatintgetSeats()getSkin(int index) intintintfloatgetSteeringClamp(float speed) floatintfloatfloatfloatfloatfloatgetWheel(int index) getWheelById(String id) intfloatbooleanbooleanbooleanbooleanbooleanhasZombieType(String string) voidInitLoadPP(String string) voidvoidLoaded()booleanbooleanremoveAttachment(int index) removeAttachment(ModelAttachment attach) removePhysicsShape(int int0) voidsetCarMechanicsOverlay(String string) voidsetCarModelName(String string) voidsetEngineRepairLevel(int _engineRepairLevel) voidsetEngineRPMType(String _engineRPMType) voidsetForcedHue(float _forcedHue) voidsetForcedSat(float _forcedSat) voidsetForcedVal(float _forcedVal) voidsetMechanicType(int _mechanicType) voidsetModelScale(float scale) voidsetOffroadEfficiency(float _offroadEfficiency) voidsetPlayerDamageProtection(float _playerDamageProtection) voidsetSeats(int _seats) voidtoBullet()booleanMethods 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, 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:
InitLoadPPin classBaseScriptObject
-
Load
-
getFileName
-
Loaded
public void Loaded() -
toBullet
public void toBullet() -
copyAreasFrom
-
copyPartsFrom
-
copyPhysicsFrom
-
copyPassengersFrom
-
copySoundFrom
-
copyWheelsFrom
-
getName
-
getFullName
-
getFullType
-
getModel
-
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:
beforeRenameAttachmentin interfaceIModelAttachmentOwner
-
afterRenameAttachment
- Specified by:
afterRenameAttachmentin interfaceIModelAttachmentOwner
-
getLightbar
-
getSounds
-
getHasSiren
public boolean getHasSiren() -
getExtents
-
getPhysicsChassisShape
-
hasPhysicsChassisShape
public boolean hasPhysicsChassisShape() -
useChassisPhysicsCollision
public boolean useChassisPhysicsCollision() -
getShadowExtents
-
getShadowOffset
-
getExtentsOffset
-
getMass
public float getMass() -
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() -
neverSpawnKey
public boolean neverSpawnKey()
-