Hi guys.
I want to add a spashing water particle effect to Warband, but I need some help to do that.
The whole code I need could be found in M&B WFAS.
I found this code in module_scripts.py
And this in module_particle_systems.py
But what I cant find is the trigger of the script "game_missile_dives_into_water".
I don't know in which .py file of WFAS the trigger is located or how I could write it.
I hope someone can help me.
Thanks.
I want to add a spashing water particle effect to Warband, but I need some help to do that.
The whole code I need could be found in M&B WFAS.
I found this code in module_scripts.py
Code:
# script_game_missile_dives_into_water
# Input: arg1 = missile_item_id, pos1 = missile_position_on_water
# Output: none
("game_missile_dives_into_water",
[
#(store_script_param, ":missile_item_id", 1),
(copy_position, pos51, pos1),
(particle_system_burst_no_sync, "psys_water_hit_a", pos51, 8),
(position_move_z, pos51, 5, 1),
(particle_system_burst_no_sync, "psys_water_hit_b", pos51, 4),
]),
Code:
##### WATER HIT ######
("water_hit_a", psf_billboard_3d | psf_randomize_size | psf_randomize_rotation | psf_global_emit_dir, "prtcl_splash_b",
80, 1.5, 4, 0.8, 0, 0, #num_particles, life, damping, gravity_strength, turbulance_size, turbulance_strength
(0.0, 1), (1, 0), #alpha keys
(0.0, 0.95), (1, 0.95), #red keys
(0.0, 0.90), (1, 0.90), #green keys
(0.0, 0.70), (1, 0.70), #blue keys
(0, 0.3), (1, 2), #scale keys
(0, 0, 0), #emit box size
(0, 0, 6), #emit velocity
0, #emit dir randomness
100, #rotation speed
0.2 #rotation damping
),
("water_hit_b",psf_randomize_size | psf_randomize_rotation | psf_turn_to_velocity|psf_global_emit_dir, "prtcl_splash_b",
4, 3, 0, 0, 0, 0, #num_particles, life, damping, gravity_strength, turbulance_size, turbulance_strength
(0.0, 1), (1, 0), #alpha keys
(0.0, 0.95), (1, 0.95), #red keys
(0.0, 0.90), (1, 0.90), #green keys
(0.0, 0.70), (1, 0.70), #blue keys
(0, 1), (1, 5), #scale keys
(0.1, 0.1, 0), #emit box size
(0, 0, -0.01), #emit velocity
0, #emit dir randomness
25, #rotation speed
0.15 #rotation damping
),
But what I cant find is the trigger of the script "game_missile_dives_into_water".
I don't know in which .py file of WFAS the trigger is located or how I could write it.
I hope someone can help me.
Thanks.