prop_vehicle_sin

From Valve Developer Community
Jump to: navigation, search
List of SE1 entities
Prop vehicle sin.png

prop_vehicle_sin is a point entity available in SiN Episodes SiN Episodes. Called the Poseidon Interceptor Vehicle, aftermarket additions make the V8 Poseidon the vehicle of choice for SecForces across the globe. With a top speed to rival most consumer level vehicles, the Poseidon puts a quick end to most pursuits, and the unique chassis and frame design allow for the easy installation of ablative armor. The armor segmentation system allows body segments to absorb the impact of high yield explosives, allowing the car to keep running even when under heavy fire.

It is a driveable sedan type of vehicle with two front doors, compartment door, openable hood, radio, gears, useable windows and sunroof etc. for the player to use. It is possible for scripted NPC's to drive the vehicle but for the player as well, except it is not used in any sequence in the final version of game and was probably planned for use in upcoming episodes. All of the outer components such as the doors are all fully detachable from the main vehicle once they individually have received enough damage, but the vehicle's body is not in contrast to the variable available for health which seems to have no effect no matter the amount of damage applied to it.

The player is able to interact with the vehicle by opening and closing the windows, drive, leaning and shooting out, toggle the radio, using the passenger compartment, change gears, toggle the front window wipers etc. It also has a built in monitor that can be attached to a camera placed somewhere in the world, activated and changed upon its usage for the scene currently playing out.

Keyvalues

Health ([todo internal name (i)]) <integer>
The health of the vehicle.
Icon-Bug.pngBug: The vehicle is invunerable no matter what, making this obsolete.  [todo tested in?]
EnableUse ([todo internal name (i)]) <integer>
Enable vehicle use system (0: Disable, 1: Enable).
ViewsLocked ([todo internal name (i)]) <integer>
Lock passenger views (0: Disable, 1: Enable).
InfiniteAmmo ([todo internal name (i)]) <integer>
Give infinite ammo to the passengers (0: Disable, 1: Enable).
Invunerable ([todo internal name (i)]) <integer>
Cannot be destroyed if invunerable.
DamageTolerance ([todo internal name (i)]) <float>
Damage Tolerance.
MonitorActive ([todo internal name (i)]) <integer>
Vehicle Monitor Active.
MonitorName ([todo internal name (i)]) <string>
Monitor Camera Name.
HintsEnable ([todo internal name (i)]) <integer>
Enable Hints.
Todo:  What qualifies as a hint?
DriverDoorLocked ([todo internal name (i)]) <integer>
Driver's door is locked (0: Disable, 1: Enable).

BaseDriveableVehicle:

Starts locked (VehicleLocked) <boolean>
Players cannot enter vehicle until it is unlocked.

BaseVehicle:

Vehicle Script File (vehiclescript) <string>
The vehicle script files contained in scripts\vehicles\ define the behaviour and handling of a vehicle. It is important to match the right script to the right entity/model:
Scale of action input / framerate (actionScale) <float>
Todo: How fast the vehicle turns/accelerates?


Inputs

SetView <integer>
Set the activators view inside the vehicle.
LockView <integer>
Lock all passenger views.
SetRadioStation <integer>
Set the radio station.
SetCamera <string>
Set Monitor Camera.
EnableUse <boolean>
Enable or disable use function inside vehicle (0: Disable, 1: Enable).
EnableHints <integer>
Enable or disable hints (0: Disable, 1: Enable).
EnableAmmo <integer>
Enable or disable ammo. Will provide the player with full ammunition once the reserve is depleted, including special types (0: Disable, 1: Enable).
Icon-Bug.pngBug: Does not seem to stock the player's special ammo for the magnum gun.  [todo tested in?]
EnterVehicle
ExitVehicle <integer>
Forces passenger into/out of the vehicle role (0: Driver, 1: Passenger, 2: Gunner).
OpenDoor
CloseDoor <integer>
Opens/closes a specific door (0: Driver, 1: Passenger, 2: Compartment, 3: Bonnet).
OpenWindow
CloseWindow <integer>
Open/close a specific window (0: Driver, 1: Passenger, 2: Behind Passenger, 3: Behind Driver).
RadioOn
RadioOff
Turn radio on/off.
OpenDoors
CloseDoors
Open/close all doors.
OpenWindows
CloseWindows
Open/close all windows.
HeadlightOn
HeadlightOff
Turn on/off headlights.
Icon-Bug.pngBug: The headlights is rotated 90 degress the wrong way.  [todo tested in?]
WipersOn
WipersOff
Turn on/off wipers.
MonitorOn
MonitorOff
Turn monitor on/off.
BaseDriveableVehicle:
HandBrakeOn
HandBrakeOff
Turns the handbrake on/off, preventing the vehicle from driving but not disabling motion from external forces.
BaseVehicle:
Action <float>
Set the speed of the action animation.
Todo: What does this mean?
TurnOn
Start engine and enable throttle.
TurnOff
Stop engine, disable throttle, engage brakes.
Lock
Unlock
Prevent/allow the player from entering or exiting the vehicle.
SetVehicleVolume <float>
Set the volume for vehicle sounds (0.0 - 1.0).

Outputs

DoorOpen
Door opened event.
DoorClosed
Door closed event.
WindowOpen
Window opened event.
WindowClosed
Window closed event.
UseBox
This output is triggered when a vehicle use box is used, the activator is the user of the use box.
ViewChanged
This output is triggered when a passenger in the vehicle changes views.

BaseDriveableVehicle:

PlayerOn
PlayerOff
Player entered/exited the vehicle. (!activator is the player.)
PressedAttack
PressedAttack2
Player pressed the +attack/+attack2 key.
AttackAxis <boolean>
Attack2Axis <boolean>
State of the attack/attack2 buttons. Also called when the player exits the vehicle.