OBD:BINA/PAR3/Actions: Difference between revisions

From OniGalore
< OBD:BINA‎ | PAR3
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 1: Line 1:
==Action types==
==Action types==


An action can take at most 8 parameters and each parameter can be either "in" (the action only reads from it) or "out" (the action modifies it). "out" parameters can only be variables (they corespond to the "variable references" section in the action defintion.
An action can take at most 8 parameters. There can be input parameters (red in the table below) and output parameters (green in the table below). Output parameters can only be variables (they corespond to the "variable references" section in the action defintion.


{{Table}}
{{Table}}
Line 7: Line 7:
!| ID ||| Description ||| Param 1 ||| Param 2 ||| Param 3 ||| Param 4 ||| Param 5 ||| Param 6 ||| Param 7 ||| Param 8
!| ID ||| Description ||| Param 1 ||| Param 2 ||| Param 3 ||| Param 4 ||| Param 5 ||| Param 6 ||| Param 7 ||| Param 8
|-
|-
||0||Linear Change||out float var||in float rate|| || || || || ||  
||0||Linear Change || BGCOLOR="#00FF00" |float var || BGCOLOR="#FF5050" |float rate|| || || || || ||  
|-
|-
||1||Acceler. Change||out float var||out float anim_vel||in float accel|| || || || ||  
||1||Acceler. Change || BGCOLOR="#00FF00" |float var || BGCOLOR="#00FF00" |float anim_vel || BGCOLOR="#FF5050" |float accel|| || || || ||  
|-
|-
||2||Random Change||out float var||in float min||in float max||in float rate|| || || ||  
||2||Random Change || BGCOLOR="#00FF00" |float var || BGCOLOR="#FF5050" |float min || BGCOLOR="#FF5050" |float max || BGCOLOR="#FF5050" |float rate|| || || ||  
|-
|-
||3||Pingpong Change||out float var||out pingpong_state pingpong||in float min||in float max||in float rate|| || ||  
||3||Pingpong Change || BGCOLOR="#00FF00" |float var || BGCOLOR="#00FF00" |pingpong_state pingpong || BGCOLOR="#FF5050" |float min || BGCOLOR="#FF5050" |float max || BGCOLOR="#FF5050" |float rate|| || ||  
|-
|-
||4||Looping Change||out float var||in float min||in float max||in float rate|| || || ||  
||4||Looping Change || BGCOLOR="#00FF00" |float var || BGCOLOR="#FF5050" |float min || BGCOLOR="#FF5050" |float max || BGCOLOR="#FF5050" |float rate|| || || ||  
|-
|-
||5||Change To Value||out float var||in float rate||in float endpoint|| || || || ||  
||5||Change To Value || BGCOLOR="#00FF00" |float var || BGCOLOR="#FF5050" |float rate || BGCOLOR="#FF5050" |float endpoint|| || || || ||  
|-
|-
||6||Color Blend||out color var||in color color_0||in color color_1||in float blendval|| || || ||  
||6||Color Blend || BGCOLOR="#00FF00" |color var || BGCOLOR="#FF5050" |color color_0 || BGCOLOR="#FF5050" |color color_1 || BGCOLOR="#FF5050" |float blendval|| || || ||  
|-
|-
||8||Fade Out||in float time_to_die|| || || || || || ||  
||8||Fade Out || BGCOLOR="#FF5050" |float time_to_die|| || || || || || ||  
|-
|-
||9||Enable Action||in action_index action||in float lifetime|| || || || || ||  
||9||Enable Action || BGCOLOR="#FF5050" |action_index action || BGCOLOR="#FF5050" |float lifetime|| || || || || ||  
|-
|-
||10||Disable Action||in action_index action||in float lifetime|| || || || || ||  
||10||Disable Action || BGCOLOR="#FF5050" |action_index action || BGCOLOR="#FF5050" |float lifetime|| || || || || ||  
|-
|-
||11||Die|| || || || || || || ||  
||11||Die|| || || || || || || ||  
|-
|-
||12||Set Lifetime||in float time|| || || || || || ||  
||12||Set Lifetime || BGCOLOR="#FF5050" |float time|| || || || || || ||  
|-
|-
||13||Enable Emitter||in emitter emitter_num|| || || || || || ||  
||13||Enable Emitter || BGCOLOR="#FF5050" |emitter emitter_num|| || || || || || ||  
|-
|-
||14||Disable Emitter||in emitter emitter_num|| || || || || || ||  
||14||Disable Emitter || BGCOLOR="#FF5050" |emitter emitter_num|| || || || || || ||  
|-
|-
||15||Emit Particles||in emitter emitter_num||in float particles|| || || || || ||  
||15||Emit Particles || BGCOLOR="#FF5050" |emitter emitter_num || BGCOLOR="#FF5050" |float particles|| || || || || ||  
|-
|-
||16||Change Class||in emitter emitter_num|| || || || || || ||  
||16||Change Class || BGCOLOR="#FF5050" |emitter emitter_num|| || || || || || ||  
|-
|-
||17||KillLastEmitted||in emitter emitter_num|| || || || || || ||  
||17||KillLastEmitted || BGCOLOR="#FF5050" |emitter emitter_num|| || || || || || ||  
|-
|-
||18||ExplodeLastEmit||in emitter emitter_num|| || || || || || ||  
||18||ExplodeLastEmit || BGCOLOR="#FF5050" |emitter emitter_num|| || || || || || ||  
|-
|-
||20||Start Amb Sound||in string sound|| || || || || || ||  
||20||Start Amb Sound || BGCOLOR="#FF5050" |string sound|| || || || || || ||  
|-
|-
||21||End Amb Sound|| || || || || || || ||  
||21||End Amb Sound|| || || || || || || ||  
|-
|-
||23||Impulse Sound||in string sound|| || || || || || ||  
||23||Impulse Sound || BGCOLOR="#FF5050" |string sound|| || || || || || ||  
|-
|-
||26||Damage Char||in float damage||in float stun_damage||in float knockback||in damage_type damage_type||in boolean self_immune||in boolean can_hit_mult|| ||  
||26||Damage Char || BGCOLOR="#FF5050" |float damage || BGCOLOR="#FF5050" |float stun_damage || BGCOLOR="#FF5050" |float knockback || BGCOLOR="#FF5050" |damage_type damage_type || BGCOLOR="#FF5050" |boolean self_immune || BGCOLOR="#FF5050" |boolean can_hit_mult|| ||  
|-
|-
||27||Blast Damage||in float damage||in float stun_damage||in float knockback||in float radius||in blast_falloff falloff||in damage_type damage_type||in boolean self_immune||in boolean damage_environ
||27||Blast Damage || BGCOLOR="#FF5050" |float damage || BGCOLOR="#FF5050" |float stun_damage || BGCOLOR="#FF5050" |float knockback || BGCOLOR="#FF5050" |float radius || BGCOLOR="#FF5050" |blast_falloff falloff || BGCOLOR="#FF5050" |damage_type damage_type || BGCOLOR="#FF5050" |boolean self_immune || BGCOLOR="#FF5050" |boolean damage_environ
|-
|-
||28||Explode|| || || || || || || ||  
||28||Explode|| || || || || || || ||  
|-
|-
||29||Damage Environ.||in float damage|| || || || || || ||  
||29||Damage Environ. || BGCOLOR="#FF5050" |float damage|| || || || || || ||  
|-
|-
||30||Glass Charge||in float blast-vel||in float radius|| || || || || ||  
||30||Glass Charge || BGCOLOR="#FF5050" |float blast-vel || BGCOLOR="#FF5050" |float radius|| || || || || ||  
|-
|-
||31||Stop|| || || || || || || ||  
||31||Stop|| || || || || || || ||  
|-
|-
||33||Rotate X||in coord_frame space||in float rate||in boolean rotate_velocity|| || || || ||  
||33||Rotate X || BGCOLOR="#FF5050" |coord_frame space || BGCOLOR="#FF5050" |float rate || BGCOLOR="#FF5050" |boolean rotate_velocity|| || || || ||  
|-
|-
||34||Rotate Y||in coord_frame space||in float rate||in boolean rotate_velocity|| || || || ||  
||34||Rotate Y || BGCOLOR="#FF5050" |coord_frame space || BGCOLOR="#FF5050" |float rate || BGCOLOR="#FF5050" |boolean rotate_velocity|| || || || ||  
|-
|-
||35||Rotate Z||in coord_frame space||in float rate||in boolean rotate_velocity|| || || || ||  
||35||Rotate Z || BGCOLOR="#FF5050" |coord_frame space || BGCOLOR="#FF5050" |float rate || BGCOLOR="#FF5050" |boolean rotate_velocity|| || || || ||  
|-
|-
||37||Find Attractor||in float delaytime|| || || || || || ||  
||37||Find Attractor || BGCOLOR="#FF5050" |float delaytime|| || || || || || ||  
|-
|-
||38||Attract Gravity||in float gravity||in float max_g||in boolean horiz_only|| || || || ||  
||38||Attract Gravity || BGCOLOR="#FF5050" |float gravity || BGCOLOR="#FF5050" |float max_g || BGCOLOR="#FF5050" |boolean horiz_only|| || || || ||  
|-
|-
||39||Attract Homing||in float turn_speed||in boolean predict_pos||in boolean horiz_only|| || || || ||  
||39||Attract Homing || BGCOLOR="#FF5050" |float turn_speed || BGCOLOR="#FF5050" |boolean predict_pos || BGCOLOR="#FF5050" |boolean horiz_only|| || || || ||  
|-
|-
||40||Attract Spring||in float accel_rate||in float max_accel||in float desired_dist|| || || || ||  
||40||Attract Spring || BGCOLOR="#FF5050" |float accel_rate || BGCOLOR="#FF5050" |float max_accel || BGCOLOR="#FF5050" |float desired_dist|| || || || ||  
|-
|-
||47||Apply Velocity|| || || || || || || ||  
||47||Apply Velocity|| || || || || || || ||  
|-
|-
||48||Apply Gravity||in float fraction|| || || || || || ||  
||48||Apply Gravity || BGCOLOR="#FF5050" |float fraction|| || || || || || ||  
|-
|-
||49||Spiral||out float theta||in float radius||in float rotate_speed|| || || || ||  
||49||Spiral || BGCOLOR="#00FF00" |float theta || BGCOLOR="#FF5050" |float radius || BGCOLOR="#FF5050" |float rotate_speed|| || || || ||  
|-
|-
||50||Air Resistance||in float resistance||in float minimum_vel|| || || || || ||  
||50||Air Resistance || BGCOLOR="#FF5050" |float resistance || BGCOLOR="#FF5050" |float minimum_vel|| || || || || ||  
|-
|-
||51||Drift||in float acceleration||in float max_speed||in float sideways_decay||in float dir_x||in float dir_y||in float dir_z||in coord_frame space||  
||51||Drift || BGCOLOR="#FF5050" |float acceleration || BGCOLOR="#FF5050" |float max_speed || BGCOLOR="#FF5050" |float sideways_decay || BGCOLOR="#FF5050" |float dir_x || BGCOLOR="#FF5050" |float dir_y || BGCOLOR="#FF5050" |float dir_z || BGCOLOR="#FF5050" |coord_frame space||  
|-
|-
||52||Set Speed||in float speed||in coord_frame space||in boolean no_sideways|| || || || ||  
||52||Set Speed || BGCOLOR="#FF5050" |float speed || BGCOLOR="#FF5050" |coord_frame space || BGCOLOR="#FF5050" |boolean no_sideways|| || || || ||  
|-
|-
||53||Spiral Tangent||in float theta||in float radius||in float rotate_speed|| || || || ||  
||53||Spiral Tangent || BGCOLOR="#FF5050" |float theta || BGCOLOR="#FF5050" |float radius || BGCOLOR="#FF5050" |float rotate_speed|| || || || ||  
|-
|-
||54||KillBeyondPoint||in axis direction||in float value|| || || || || ||  
||54||KillBeyondPoint || BGCOLOR="#FF5050" |axis direction || BGCOLOR="#FF5050" |float value|| || || || || ||  
|-
|-
||55||Create Effect||in string classname||in float wall_offset||in collision_orient orientation||in boolean attach|| || || ||  
||55||Create Effect || BGCOLOR="#FF5050" |string classname || BGCOLOR="#FF5050" |float wall_offset || BGCOLOR="#FF5050" |collision_orient orientation || BGCOLOR="#FF5050" |boolean attach|| || || ||  
|-
|-
||56||Stick To Wall|| || || || || || || ||  
||56||Stick To Wall|| || || || || || || ||  
|-
|-
||57||Bounce||in float elastic_direct||in float elastic_glancing|| || || || || ||  
||57||Bounce || BGCOLOR="#FF5050" |float elastic_direct || BGCOLOR="#FF5050" |float elastic_glancing|| || || || || ||  
|-
|-
||59||Chop Particle|| || || || || || || ||  
||59||Chop Particle|| || || || || || || ||  
|-
|-
||60||Impact Effect||in string impact_type||in impact_modifier impact_modifier|| || || || || ||  
||60||Impact Effect || BGCOLOR="#FF5050" |string impact_type || BGCOLOR="#FF5050" |impact_modifier impact_modifier|| || || || || ||  
|-
|-
||62||Unhide Particle|| || || || || || || ||  
||62||Unhide Particle|| || || || || || || ||  
Line 105: Line 105:
||63||Hide Particle|| || || || || || || ||  
||63||Hide Particle|| || || || || || || ||  
|-
|-
||64||Set TextureTick||in float tick|| || || || || || ||  
||64||Set TextureTick || BGCOLOR="#FF5050" |float tick|| || || || || || ||  
|-
|-
||65||Random TexFrame|| || || || || || || ||  
||65||Random TexFrame|| || || || || || || ||  
|-
|-
||70||Set Variable||out float var||in float value|| || || || || ||  
||70||Set Variable || BGCOLOR="#00FF00" |float var || BGCOLOR="#FF5050" |float value|| || || || || ||  
|-
|-
||71||Recalculate All|| || || || || || || ||  
||71||Recalculate All|| || || || || || || ||  
|-
|-
||72||Enable Above||in action_index action||in float var||in float threshold|| || || || ||  
||72||Enable Above || BGCOLOR="#FF5050" |action_index action || BGCOLOR="#FF5050" |float var || BGCOLOR="#FF5050" |float threshold|| || || || ||  
|-
|-
||73||Enable Below||in action_index action||in float var||in float threshold|| || || || ||  
||73||Enable Below || BGCOLOR="#FF5050" |action_index action || BGCOLOR="#FF5050" |float var || BGCOLOR="#FF5050" |float threshold|| || || || ||  
|-
|-
||74||Enable Now||in action_index action|| || || || || || ||  
||74||Enable Now || BGCOLOR="#FF5050" |action_index action|| || || || || || ||  
|-
|-
||75||Disable Now||in action_index action|| || || || || || ||  
||75||Disable Now || BGCOLOR="#FF5050" |action_index action|| || || || || || ||  
|-
|-
||77||SuperB Trigger||in emitter emitter_num||in float fuse_time|| || || || || ||  
||77||SuperB Trigger || BGCOLOR="#FF5050" |emitter emitter_num || BGCOLOR="#FF5050" |float fuse_time|| || || || || ||  
|-
|-
||78||BreakableStop|| || || || || || || ||  
||78||BreakableStop|| || || || || || || ||  
|-
|-
||79||Avoid Walls||out float axis_x||out float axis_y||out float axis_z||out float cur_angle||out float t_until_check||in float sense_dist||in float turning_speed||in float turning_decay
||79||Avoid Walls || BGCOLOR="#00FF00" |float axis_x || BGCOLOR="#00FF00" |float axis_y || BGCOLOR="#00FF00" |float axis_z || BGCOLOR="#00FF00" |float cur_angle || BGCOLOR="#00FF00" |float t_until_check || BGCOLOR="#FF5050" |float sense_dist || BGCOLOR="#FF5050" |float turning_speed || BGCOLOR="#FF5050" |float turning_decay
|-
|-
||80||Random Swirl||out float swirl_angle||in float swirl_baserate||in float swirl_deltarate||in float swirl_speed|| || || ||  
||80||Random Swirl || BGCOLOR="#00FF00" |float swirl_angle || BGCOLOR="#FF5050" |float swirl_baserate || BGCOLOR="#FF5050" |float swirl_deltarate || BGCOLOR="#FF5050" |float swirl_speed|| || || ||  
|-
|-
||81||Follow Player||in float height|| || || || || || ||  
||81||Follow Player || BGCOLOR="#FF5050" |float height|| || || || || || ||  
|-
|-
||82||Stop BelowSpeed||in float speed|| || || || || || ||  
||82||Stop BelowSpeed || BGCOLOR="#FF5050" |float speed|| || || || || || ||  
|-
|-
||83||Super Particle||out float variable||in float base_value||in float delta_value||in float min_value||in float max_value|| || ||  
||83||Super Particle || BGCOLOR="#00FF00" |float variable || BGCOLOR="#FF5050" |float base_value || BGCOLOR="#FF5050" |float delta_value || BGCOLOR="#FF5050" |float min_value || BGCOLOR="#FF5050" |float max_value|| || ||  
|-
|-
||84||Stop Our Link|| || || || || || || ||  
||84||Stop Our Link|| || || || || || || ||  

Revision as of 13:47, 9 December 2007

Action types

An action can take at most 8 parameters. There can be input parameters (red in the table below) and output parameters (green in the table below). Output parameters can only be variables (they corespond to the "variable references" section in the action defintion.

ID Description Param 1 Param 2 Param 3 Param 4 Param 5 Param 6 Param 7 Param 8
0 Linear Change float var float rate
1 Acceler. Change float var float anim_vel float accel
2 Random Change float var float min float max float rate
3 Pingpong Change float var pingpong_state pingpong float min float max float rate
4 Looping Change float var float min float max float rate
5 Change To Value float var float rate float endpoint
6 Color Blend color var color color_0 color color_1 float blendval
8 Fade Out float time_to_die
9 Enable Action action_index action float lifetime
10 Disable Action action_index action float lifetime
11 Die
12 Set Lifetime float time
13 Enable Emitter emitter emitter_num
14 Disable Emitter emitter emitter_num
15 Emit Particles emitter emitter_num float particles
16 Change Class emitter emitter_num
17 KillLastEmitted emitter emitter_num
18 ExplodeLastEmit emitter emitter_num
20 Start Amb Sound string sound
21 End Amb Sound
23 Impulse Sound string sound
26 Damage Char float damage float stun_damage float knockback damage_type damage_type boolean self_immune boolean can_hit_mult
27 Blast Damage float damage float stun_damage float knockback float radius blast_falloff falloff damage_type damage_type boolean self_immune boolean damage_environ
28 Explode
29 Damage Environ. float damage
30 Glass Charge float blast-vel float radius
31 Stop
33 Rotate X coord_frame space float rate boolean rotate_velocity
34 Rotate Y coord_frame space float rate boolean rotate_velocity
35 Rotate Z coord_frame space float rate boolean rotate_velocity
37 Find Attractor float delaytime
38 Attract Gravity float gravity float max_g boolean horiz_only
39 Attract Homing float turn_speed boolean predict_pos boolean horiz_only
40 Attract Spring float accel_rate float max_accel float desired_dist
47 Apply Velocity
48 Apply Gravity float fraction
49 Spiral float theta float radius float rotate_speed
50 Air Resistance float resistance float minimum_vel
51 Drift float acceleration float max_speed float sideways_decay float dir_x float dir_y float dir_z coord_frame space
52 Set Speed float speed coord_frame space boolean no_sideways
53 Spiral Tangent float theta float radius float rotate_speed
54 KillBeyondPoint axis direction float value
55 Create Effect string classname float wall_offset collision_orient orientation boolean attach
56 Stick To Wall
57 Bounce float elastic_direct float elastic_glancing
59 Chop Particle
60 Impact Effect string impact_type impact_modifier impact_modifier
62 Unhide Particle
63 Hide Particle
64 Set TextureTick float tick
65 Random TexFrame
70 Set Variable float var float value
71 Recalculate All
72 Enable Above action_index action float var float threshold
73 Enable Below action_index action float var float threshold
74 Enable Now action_index action
75 Disable Now action_index action
77 SuperB Trigger emitter emitter_num float fuse_time
78 BreakableStop
79 Avoid Walls float axis_x float axis_y float axis_z float cur_angle float t_until_check float sense_dist float turning_speed float turning_decay
80 Random Swirl float swirl_angle float swirl_baserate float swirl_deltarate float swirl_speed
81 Follow Player float height
82 Stop BelowSpeed float speed
83 Super Particle float variable float base_value float delta_value float min_value float max_value
84 Stop Our Link
85 Check Link
86 Break Links To