230 lines
5.7 KiB
Modula-2
230 lines
5.7 KiB
Modula-2
/***********************************************************************
|
|
|
|
reexportModels tools\injector.def
|
|
|
|
***********************************************************************/
|
|
|
|
// ========================================================================
|
|
// Export
|
|
//
|
|
|
|
export hauser {
|
|
options -prefix INJECTOR_ -sourcedir models/tools/stroyent_tool/dev_sd -destdir models/tools/stroyent_tool -keep
|
|
|
|
/*
|
|
mesh stroyent_injector_base_file.mb -dest stroyent_tool_view.md5mesh
|
|
*/
|
|
anim stroyent_injector_idle.mb -dest stroyent_tool_idle.md5anim
|
|
/*
|
|
anim stroyent_injector_raise.mb -dest stroyent_tool_raise.md5anim
|
|
anim stroyent_injector_lower.mb -dest stroyent_tool_lower.md5anim
|
|
anim stroyent_injector_reload.mb -dest stroyent_tool_reload.md5anim
|
|
*/
|
|
anim stroyent_injector_fire_loop.mb -dest stroyent_tool_fire_start.md5anim -range 20 26
|
|
anim stroyent_injector_fire_loop.mb -dest stroyent_tool_fire_loop.md5anim -range 27 71
|
|
anim stroyent_injector_fire_loop.mb -dest stroyent_tool_fire_end.md5anim -range 72 78
|
|
|
|
}
|
|
|
|
// ========================================================================
|
|
// VIEW Models
|
|
//
|
|
model viewmodel_stroyent_tool {
|
|
mesh models/tools/stroyent_tool/stroyent_tool_view.md5mesh
|
|
|
|
anim raise models/tools/stroyent_tool/stroyent_tool_raise.md5anim {
|
|
frame begin sound_channel snd_weapon_raise snd_raise
|
|
}
|
|
|
|
anim idle models/tools/stroyent_tool/stroyent_tool_idle.md5anim {
|
|
}
|
|
|
|
anim fire_start models/tools/stroyent_tool/stroyent_tool_fire_start.md5anim {
|
|
//frame 1 sound_channel snd_weapon_cock snd_cock
|
|
}
|
|
|
|
anim fire models/tools/stroyent_tool/stroyent_tool_fire_loop.md5anim {
|
|
//frame 1 sound_channel snd_weapon_fire snd_fire
|
|
//frame 1 sound_channel snd_weapon_cock snd_breech
|
|
frame 1 sound_channel snd_weapon_mech snd_cock
|
|
frame 7 sound_channel snd_weapon_mech snd_steam
|
|
//frame 13 sound_channel snd_weapon_mech snd_cock
|
|
frame 1 effect fx_fire joint2
|
|
}
|
|
|
|
anim fire_end models/tools/stroyent_tool/stroyent_tool_fire_end.md5anim {
|
|
}
|
|
|
|
anim reload models/tools/stroyent_tool/stroyent_tool_reload.md5anim {
|
|
frame 18 sound_channel snd_weapon_raise snd_boost
|
|
}
|
|
|
|
anim putaway models/tools/stroyent_tool/stroyent_tool_lower.md5anim {
|
|
}
|
|
}
|
|
|
|
// ========================================================================
|
|
// Entity DEFS
|
|
//
|
|
invItemDef inventory/tools/spike_meditech {
|
|
type "tool"
|
|
slot "tool"
|
|
name "game/weapons/stroyent_tool"
|
|
|
|
data {
|
|
"model_view" "viewmodel_stroyent_tool"
|
|
"joint_attach" "RightHand"
|
|
|
|
"view_offset" "-3.6 -2 -2.4"
|
|
|
|
"anim_prefix" "hands_construction_tool"
|
|
"anim_prefix_class" "hands"
|
|
|
|
"weapon_scriptobject" "spike_meditech"
|
|
|
|
"dmg_melee" "damage_stroyent_tool"
|
|
|
|
"snd_fire" "sounds/weapons/spikes/fire"
|
|
|
|
"snd_cock" "sounds/weapons/nailgun/cock"
|
|
"snd_breech" "sounds/weapons/nailgun/breech"
|
|
"snd_steam" "sounds/weapons/blaster/steam"
|
|
"snd_raise" "sounds/tools/infiltrator/raise"
|
|
"snd_boost" "sounds/tools/infiltrator/raise"
|
|
|
|
"melee_distance" "88"
|
|
|
|
"show_charge" "1"
|
|
"charge_per_use" "100"
|
|
|
|
"use_hold_anims" "1"
|
|
|
|
"activate_attack" "1"
|
|
|
|
"fire_rate" "0.1"
|
|
|
|
"def_spawn_host" "spawn_host"
|
|
|
|
"mtr_weaponmenu" "guis/assets/icons/weapons/injector"
|
|
|
|
"tt_intro_1" "stroyent_tool_intro_1"
|
|
"tt_intro_2" "stroyent_tool_intro_2"
|
|
"tt_intro_3" "stroyent_tool_intro_3"
|
|
"tt_action_failed" "stroyent_tool_action_failed"
|
|
|
|
"crosshair" "none"
|
|
|
|
"crosshair_spread_min" "0.1"
|
|
"crosshair_spread_max" "0.1"
|
|
"crosshair_spread_scale" "1"
|
|
|
|
"spread_min" "0"
|
|
"spread_max" "0"
|
|
|
|
"spread_crouch_min" "0"
|
|
"spread_crouch_max" "0"
|
|
|
|
"spread_prone_min" "0"
|
|
"spread_prone_max" "0"
|
|
|
|
"spread_jump_min" "0"
|
|
"spread_jump_max" "0"
|
|
|
|
"player_weapon_num" "8"
|
|
|
|
"fx_fire" "effects/tools/stroyent_tool_fire"
|
|
}
|
|
}
|
|
|
|
damageDef damage_technician_self_destruct {
|
|
damage "damage_technician_self_destruct"
|
|
radius 512
|
|
|
|
tt_obituary "tooltips/killmsgs/weapons/selfdestruct"
|
|
tt_obituary_team_kill "tooltips/killmsgs/weapons/selfdestruct/teamkill"
|
|
tt_obituary_self "tooltips/killmsgs/weapons/selfdestruct/self"
|
|
}
|
|
|
|
damageFilter damage_technician_self_destruct {
|
|
type {
|
|
target "target_player_all"
|
|
damage 100
|
|
}
|
|
|
|
type {
|
|
target "target_veh_all"
|
|
damage 100
|
|
}
|
|
|
|
type {
|
|
target "target_deployables_all"
|
|
damage 100
|
|
}
|
|
|
|
type {
|
|
target "target_doors_all"
|
|
damage 100
|
|
}
|
|
}
|
|
|
|
toolTip stroyent_tool_intro_1 {
|
|
sound "sounds/ui/main/neutral"
|
|
text "game/tt/intro/stroyent_tool_1"
|
|
}
|
|
|
|
toolTip stroyent_tool_intro_2 {
|
|
sound "sounds/ui/main/neutral"
|
|
text "game/tt/intro/generic/fire_activate_use_item"
|
|
}
|
|
|
|
toolTip stroyent_tool_intro_3 {
|
|
sound "sounds/ui/main/neutral"
|
|
text "game/tt/intro/stroyent_tool_2"
|
|
}
|
|
|
|
toolTip stroyent_tool_action_failed {
|
|
sound "sounds/ui/main/cannot"
|
|
text "game/tt/intro/stroyent_tool_action_failed"
|
|
}
|
|
|
|
damageDef damage_stroyent_tool {
|
|
damage "damage_stroyent_tool"
|
|
melee
|
|
|
|
kickDir ( -1 0 0 )
|
|
|
|
mtr_blob "genericDamage"
|
|
blob_time 300
|
|
blob_offset_x 400
|
|
|
|
knockback 20
|
|
kick_time 400
|
|
kick_amplitude 0.5
|
|
|
|
noheadshot
|
|
|
|
kick_time 400
|
|
kick_amplitude 0.5
|
|
|
|
stat_name "knife"
|
|
|
|
prof_damage "pro_technician_damage"
|
|
|
|
tt_obituary "tooltips/killmsgs/weapons/stroyent_tool"
|
|
tt_obituary_team_kill "tooltips/killmsgs/weapons/stroyent_tool/teamkill"
|
|
}
|
|
|
|
damageFilter damage_stroyent_tool {
|
|
|
|
type {
|
|
target "target_player_all"
|
|
damage 10
|
|
}
|
|
|
|
type {
|
|
target "target_all"
|
|
damage 1
|
|
}
|
|
}
|
|
|