RailheadGunner
A component script.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2Railhead: Dust Sea — the crew position. One instance per player, riding the scene's PlayerPrototype camera rig. It owns everything that belongs to a person rather than to the battle: where the gun is pointed, the scope, the capacitor / heat / coolant on the piece they are working, the shot they take, and every screen they read. The shared battle lives in `RailheadWorld`; this component asks it to launch slugs and reads its state for the HUD.
findWorld( ) → any
propsOf(ref: any) → void
Translate a `.shader` asset's declared properties into the shape `postprocess.add` wants.
| arg | type | description |
|---|---|---|
| ref | any |
addPass(name: string, ref: any, priority: number) → void
| arg | type | description |
|---|---|---|
| name | string | |
| ref | any | |
| priority | number |
registerPost( ) → void
Each resolve is a literal so the reference is statically pinned and the stack survives being imported into another world.
removePost( ) → void
aimVector(headingDeg: number, elevDeg: number) → void
Unit vector for the current heading/elevation. Heading 0 = +Z.
| arg | type | description |
|---|---|---|
| headingDeg | number | |
| elevDeg | number |
worldToScreen(wx: number, wy: number, wz: number, fov: number) → void
Project a world point into canvas coordinates for the current view. Returns nil when the point is behind the camera.
| arg | type | description |
|---|---|---|
| wx | number | |
| wy | number | |
| wz | number | |
| fov | number |
capacitorMax( ) → number
coolRate( ) → number
coolantMax( ) → number
rechargeRate( ) → number
zoomLevels( ) → void
availableSlugs( ) → void
currentSlug( ) → any
muzzleVelocity(charge: number) → number
| arg | type | description |
|---|---|---|
| charge | number |
muzzleWorld( ) → void
Where the muzzle currently is, in world space.
solve(range: number, charge: number) → void
Predicted flight for the current solution: time of flight and drop, from a coarse forward integration. Used for the drop marks and the lead marker.
| arg | type | description |
|---|---|---|
| range | number | |
| charge | number |
fire( ) → void
purgeCoolant( ) → void
hideAll( ) → void
uiState( ) → void
renderScreens( ) → void
readAim(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
readActions(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
onCallback(id: string, data: any) → void
| arg | type | description |
|---|---|---|
| id | string | |
| data | any |
driveCamera(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
drivePost(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
pushDamageNumber(wx: number, wy: number, wz: number, amount: number, killed: boolean, name: string) → void
| arg | type | description |
|---|---|---|
| wx | number | |
| wy | number | |
| wz | number | |
| amount | number | |
| killed | boolean | |
| name | string |
updateDamageNumbers(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
bindWorldEvents( ) → void
awake( ) → void
start( ) → void
tick(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
update(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
editorUpdate(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
onDestroy( ) → void
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
These counts cover only the parts this page shows. Problems on the parts it leaves out are not counted here.
Inside
3 problems across 1 itemagent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.