Class VehicleScript

java.lang.Object
zombie.scripting.objects.BaseScriptObject
zombie.scripting.objects.VehicleScript
All Implemented Interfaces:
IModelAttachmentOwner

public final class VehicleScript extends BaseScriptObject implements IModelAttachmentOwner
  • Field Details

    • m_attachments

      public final ArrayList<ModelAttachment> m_attachments
    • maxSpeed

      public float maxSpeed
    • maxSpeedReverse

      public float maxSpeedReverse
    • isSmallVehicle

      public boolean isSmallVehicle
    • spawnOffsetY

      public float spawnOffsetY
    • leftSirenCol

      public ImmutableColor leftSirenCol
    • rightSirenCol

      public ImmutableColor 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

      public void InitLoadPP(String string)
      Overrides:
      InitLoadPP in class BaseScriptObject
    • Load

      public void Load(String _name, String totalFile) throws Exception
      Overrides:
      Load in class BaseScriptObject
      Throws:
      Exception
    • getFileName

      public String getFileName()
    • Loaded

      public void Loaded()
    • toBullet

      public void toBullet()
    • copyAreasFrom

      public void copyAreasFrom(VehicleScript other, String spec)
    • copyPartsFrom

      public void copyPartsFrom(VehicleScript other, String spec)
    • copyPhysicsFrom

      public void copyPhysicsFrom(VehicleScript vehicleScript1, String var2)
    • copyPassengersFrom

      public void copyPassengersFrom(VehicleScript other, String spec)
    • copySoundFrom

      public void copySoundFrom(VehicleScript vehicleScript0, String string0)
    • copyWheelsFrom

      public void copyWheelsFrom(VehicleScript other, String spec)
    • getName

      public String getName()
    • getFullName

      public String getFullName()
    • getFullType

      public String getFullType()
    • getModel

      public VehicleScript.Model getModel()
    • getModelOffset

      public org.joml.Vector3f getModelOffset()
    • getModelScale

      public float getModelScale()
    • setModelScale

      public void setModelScale(float scale)
    • getModelCount

      public int getModelCount()
    • getModelByIndex

      public VehicleScript.Model getModelByIndex(int index)
    • getModelById

      public VehicleScript.Model getModelById(String id, ArrayList<VehicleScript.Model> _models)
    • getModelById

      public VehicleScript.Model getModelById(String id)
    • getAttachmentCount

      public int getAttachmentCount()
    • getAttachment

      public ModelAttachment getAttachment(int index)
    • getAttachmentById

      public ModelAttachment getAttachmentById(String id)
    • addAttachment

      public ModelAttachment addAttachment(ModelAttachment attach)
    • removeAttachment

      public ModelAttachment removeAttachment(ModelAttachment attach)
    • addAttachmentAt

      public ModelAttachment addAttachmentAt(int index, ModelAttachment attach)
    • removeAttachment

      public ModelAttachment removeAttachment(int index)
    • beforeRenameAttachment

      public void beforeRenameAttachment(ModelAttachment var1)
      Specified by:
      beforeRenameAttachment in interface IModelAttachmentOwner
    • afterRenameAttachment

      public void afterRenameAttachment(ModelAttachment var1)
      Specified by:
      afterRenameAttachment in interface IModelAttachmentOwner
    • getLightbar

      public VehicleScript.LightBar getLightbar()
    • getSounds

      public VehicleScript.Sounds 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

      public VehicleScript.Wheel getWheel(int index)
    • getWheelById

      public VehicleScript.Wheel getWheelById(String id)
    • getIndexOfWheelById

      public int getIndexOfWheelById(String id)
    • getPassengerCount

      public int getPassengerCount()
    • getPassenger

      public VehicleScript.Passenger getPassenger(int index)
    • getPassengerById

      public VehicleScript.Passenger getPassengerById(String id)
    • getPassengerIndex

      public int getPassengerIndex(String id)
    • getPhysicsShapeCount

      public int getPhysicsShapeCount()
    • getPhysicsShape

      public VehicleScript.PhysicsShape getPhysicsShape(int index)
    • addPhysicsShape

      public VehicleScript.PhysicsShape addPhysicsShape(String string)
    • removePhysicsShape

      public VehicleScript.PhysicsShape removePhysicsShape(int int0)
    • getFrontEndHealth

      public int getFrontEndHealth()
    • getRearEndHealth

      public int getRearEndHealth()
    • getStorageCapacity

      public int getStorageCapacity()
    • getTextures

      public VehicleScript.Skin getTextures()
    • getSkinCount

      public int getSkinCount()
    • getSkin

      public VehicleScript.Skin getSkin(int index)
    • getAreaCount

      public int getAreaCount()
    • getArea

      public VehicleScript.Area getArea(int index)
    • getAreaById

      public VehicleScript.Area getAreaById(String id)
    • getIndexOfAreaById

      public int getIndexOfAreaById(String id)
    • getPartCount

      public int getPartCount()
    • getPart

      public VehicleScript.Part getPart(int index)
    • getPartById

      public VehicleScript.Part getPartById(String id)
    • getIndexOfPartById

      public int getIndexOfPartById(String id)
    • globMatch

      public boolean globMatch(String pattern, String str)
    • 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

      public String getEngineRPMType()
    • setEngineRPMType

      public void setEngineRPMType(String _engineRPMType)
    • getOffroadEfficiency

      public float getOffroadEfficiency()
    • setOffroadEfficiency

      public void setOffroadEfficiency(float _offroadEfficiency)
    • getCrawlOffsets

      public gnu.trove.list.array.TFloatArrayList getCrawlOffsets()
    • getAnimalTrailerSize

      public float getAnimalTrailerSize()
    • getZombieType

      public ArrayList<String> getZombieType()
    • getSpecialKeyRing

      public ArrayList<String> getSpecialKeyRing()
    • getRandomZombieType

      public String getRandomZombieType()
    • getRandomSpecialKeyRing

      public String getRandomSpecialKeyRing()
    • hasSpecialKeyRing

      public boolean hasSpecialKeyRing()
    • getFirstZombieType

      public String getFirstZombieType()
    • hasZombieType

      public boolean hasZombieType(String string)
    • notKillCrops

      public boolean notKillCrops()
    • hasLighter

      public boolean hasLighter()
    • getCarMechanicsOverlay

      public String getCarMechanicsOverlay()
    • setCarMechanicsOverlay

      public void setCarMechanicsOverlay(String string)
    • getCarModelName

      public String getCarModelName()
    • setCarModelName

      public void setCarModelName(String string)
    • getSpecialLootChance

      public int getSpecialLootChance()
    • getSpecialKeyRingChance

      public int getSpecialKeyRingChance()