mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-26 06:45:31 +03:00
Updated VScript in Mapbase (markdown)
parent
69bd6b85e2
commit
2505d266c9
@ -36,6 +36,11 @@ For more information on VScript itself, [click here](https://developer.valvesoft
|
||||
* [CAI_Hint](VScript-in-Mapbase#CAI_Hint)
|
||||
* [CAI_Expresser](VScript-in-Mapbase#CAI_Expresser)
|
||||
* [AI_EnemyInfo_t](VScript-in-Mapbase#AI_EnemyInfo_t)
|
||||
* [CAI_GoalEntity](VScript-in-Mapbase#CAI_GoalEntity)
|
||||
* [CAI_ActBusyGoal](VScript-in-Mapbase#CAI_ActBusyGoal)
|
||||
* [CPropVehicle](VScript-in-Mapbase#CPropVehicle)
|
||||
* [CPropVehicleDriveable](VScript-in-Mapbase#CPropVehicleDriveable)
|
||||
* [CFourWheelVehiclePhysics](VScript-in-Mapbase#CFourWheelVehiclePhysics)
|
||||
* [CGlobalState](VScript-in-Mapbase#CGlobalState)
|
||||
* [CMapbaseSystem](VScript-in-Mapbase#CMapbaseSystem)
|
||||
* [CLogicExternalData](VScript-in-Mapbase#CLogicExternalData)
|
||||
@ -298,6 +303,82 @@ Accessor for information about an enemy. Typically accessed through `FindEnemyMe
|
||||
| *bool* MobbedMe()| Get whether the enemy was part of a mob at some point. |
|
||||
| *void* SetMobbedMe(bool *value*)| Set whether the enemy was part of a mob at some point. |
|
||||
|
||||
***
|
||||
|
||||
### CAI_GoalEntity
|
||||
The base class for goal entities used to control NPC behavior.
|
||||
|
||||
| Signature | Description |
|
||||
|:------------- | :-----|
|
||||
| *bool* IsActive()| Check if the goal entity is active. |
|
||||
| *int* NumActors()| Get the number of actors using this goal entity. |
|
||||
|
||||
***
|
||||
|
||||
### CAI_ActBusyGoal
|
||||
A goal entity which makes NPCs act busy.
|
||||
|
||||
| Signature | Description |
|
||||
|:------------- | :-----|
|
||||
| *void* ForceBusy(*handle* npc, *handle* hint, *bool* teleportOnly)| Force a NPC to act busy. |
|
||||
| *void* ForceBusyComplex(*handle* npc, *handle* hint, *bool* teleportOnly, *bool* useNearestBusy, *float* maxTime, *int* activity, *handle* seeEntity)| Force a NPC to act busy with additional parameters. |
|
||||
| *void* StopBusy()| Force a NPC to stop busying. |
|
||||
|
||||
***
|
||||
|
||||
### CPropVehicle
|
||||
The base class for four-wheel physics vehicles.
|
||||
|
||||
| Signature | Description |
|
||||
|:------------- | :-----|
|
||||
| *int* GetVehicleType()| Get a vehicle's type. |
|
||||
| *handle* GetPhysics()| Get a vehicle's physics. |
|
||||
|
||||
***
|
||||
|
||||
### CPropVehicleDriveable
|
||||
The base class for drive-able vehicles. *(this descends from `CPropVehicle`!)*
|
||||
|
||||
| Signature | Description |
|
||||
|:------------- | :-----|
|
||||
| *bool* IsOverturned()| Check if the vehicle is overturned. |
|
||||
| *bool* IsVehicleBodyInWater()| Check if the vehicle's body is submerged in water. |
|
||||
| *void* StartEngine()| Start the engine. |
|
||||
| *void* StopEngine()| Stop the engine. |
|
||||
| *bool* IsEngineOn()| Check if the engine is on. |
|
||||
| *handle* GetDriver()| Get a vehicle's driver, which could be either a player or a npc_vehicledriver. |
|
||||
|
||||
***
|
||||
|
||||
### CFourWheelVehiclePhysics
|
||||
Handler for four-wheel vehicle physics. Can be accessed through `GetPhysics()` on vehicles.
|
||||
|
||||
| Signature | Description |
|
||||
|:------------- | :-----|
|
||||
| *void* SetThrottle(*float* value)| Sets the throttle. |
|
||||
| *void* SetMaxThrottle(*float* value)| Sets the max throttle. |
|
||||
| *void* SetMaxReverseThrottle(*float* value)| Sets the max reverse throttle. |
|
||||
| *void* SetSteering(*float* value)| Sets the steering. |
|
||||
| *void* SetSteeringDegrees(*float* value)| Sets the degrees of steering. |
|
||||
| *void* SetAction(*float* value)| Sets the action. |
|
||||
| *void* SetHandbrake(*bool* value)| Sets the handbrake. |
|
||||
| *void* SetBoost(*float* value)| Sets the boost. |
|
||||
| *void* SetHasBrakePedal(*bool* value)| Sets whether a handbrake pedal exists. |
|
||||
| *void* SetDisableEngine(*bool* value)| Sets whether the engine is disabled. |
|
||||
| *bool* IsEngineDisabled()| Checks whether the engine is disabled. |
|
||||
| *void* EnableMotion()| Enables vehicle motion. |
|
||||
| *void* DisableMotion()| Disables vehicle motion. |
|
||||
| *float* GetSpeed()| Gets the speed. |
|
||||
| *float* GetMaxSpeed()| Gets the max speed. |
|
||||
| *float* GetRPM()| Gets the RPM. |
|
||||
| *float* GetThrottle()| Gets the throttle. |
|
||||
| *bool* HasBoost()| Checks if the vehicle has the ability to boost. |
|
||||
| *float* BoostTimeLeft()| Gets how much time is left in any current boost. |
|
||||
| *bool* IsBoosting()| Checks if the vehicle is boosting. |
|
||||
| *float* GetHLSpeed()| Gets HL speed. |
|
||||
| *float* GetSteering()| Gets the steeering. |
|
||||
| *float* GetSteeringDegrees()| Gets the degrees of steeering. |
|
||||
|
||||
***
|
||||
***
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user