Тэкс.... попробовал збацать магический посох
испытание прошло удачно (почти так как мне нужно)...
кому надо вот скрипты
module_items.py
<!--QuoteBegin--><!--QuoteEBegin-->["magic_staff", "Magic Staff", [("iron_staff",0)], itp_type_pistol|itp_cant_reload_on_horseback|itp_two_handed|itp_primary|itp_next_item_as_melee, itcf_shoot_pistol|itcf_carry_spear|itcf_reload_pistol, 230, weight(1.5)|abundance(90)|difficulty(0)|spd_rtng(50)|shoot_speed(1600)|thrust_damage(100,pierce)|max_ammo(999)|accuracy(0), imodbits_none, [(ti_on_weapon_attack,[(position_move_x,pos1,0),(position_move_y,pos1,145),(particle_system_burst,"psys_torch_fire",pos1,15)])] ],
["magic_staff_melee", "Magic Staff Melee", [("iron_staff",0)], itp_type_polearm|itp_offset_lance|itp_merchandise| itp_primary, itc_staff|itcf_carry_sword_back, 202 , weight(2)|difficulty(0)|spd_rtng(95) | weapon_length(140)|swing_damage(80 , cut) | thrust_damage(40 , cut),imodbits_polearm ],
["mage_staff_fire","Mage Staff Fire", [("cartridge_a",0)], itp_type_bullets|itp_merchandise|itp_can_penetrate_shield|itp_default_ammo, 0, 40,weight(1.25)|abundance(80)|weapon_length(5)|thrust_damage(80,pierce)|max_ammo(200),imodbits_missile,
[(ti_on_missile_hit, [(store_trigger_param_1,":mage_ball"),
(particle_system_burst,"psys_war_smoke_tall",pos1,0),
(particle_system_burst,"psys_mage_fire",pos1,0),
(particle_system_burst,"psys_ladder_dust_8m",pos1,0),
(particle_system_burst,"psys_ladder_dust_6m",pos1,0),
(particle_system_burst,"psys_ladder_straw_6m",pos1,0),
(play_sound,"snd_fire"),
(try_for_agents,":target"),
(agent_get_position,pos2,":target"),
(get_distance_between_positions,":dist",pos1,pos2),
(try_begin),
(lt,":dist",5),
(store_agent_hit_points,":hp",":target",1),
(store_random_in_range,":dmg",100,200),
(val_sub,":hp",":dmg"),
(agent_set_hit_points,":target",":hp",1),
(agent_deliver_damage_to_agent,":mage_ball",":target"),
(try_end),
(try_end)])]],[/quote]
module_particle_systems.py
##mage+##
("mage_fire", psf_billboard_3d|psf_global_emit_dir|psf_always_emit|psf_randomize_size|psf_randomize_rotation, "prt_mesh_fire_1",
35, 0.6, 0.2, -0.2, 10.0, 0.0, #num_particles, life, damping, gravity_strength, turbulance_size, turbulance_strength
(0.5, 0.5), (1, 0), #alpha keys
(0.5, 1.0), (1, 0.9), #red keys
(0.5, 0.7),(1, 0.3), #green keys
(0.5, 0.2), (1, 0.0), #blue keys
(0, 2.18), (4, 9), #scale keys
(0.4, 0.2, 0.01), #emit box size
(0, 0, 0.4), #emit velocity
0.1, #emit dir randomness
100, #rotation speed
0.5 #rotation damping
),
##mage-##
module_sounds.py
("fire", sf_vol_9,["КАКОЙ НЕБУТЬ ЗВУК.wav"]),
Эффекты и скрипт можете менять как душе угодно
Комментариев 11
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.