MeleeWeaponData { // Time before you can swing the weapon again "refire_delay" "0.8" // Model to show in firstperson "viewmodel" "models/v_models/v_knife_t.mdl" // Model to show in thirdperson "playermodel" "models/w_models/weapons/w_knife_t.mdl" // Animation prefix - not sure what this is used for just yet "anim_prefix" "anim" // Damage per hit "damage" "50" // Damage flag value // right now you can enter the integer values, or logical OR them together // supported damage types //DMG_SLASH (1 << 2) = 4 - cuts off parts of infected //DMG_BURN (1 << 3) = 8 - lights zombies on fire //DMG_CLUB (1 << 7) = 128 - knocks them back? "damage_flags" "4" // Rumble effect to play on 360 when we swing // RUMBLE_CROWBAR_SWING = 9 // RUMBLE_L4D_PLAYER_MELEE_HIT = 42 "rumble_effect" "42" // Third person animations "activity_idle" "ACT_IDLE_FRYINGPAN" "activity_walk" "ACT_WALK_FRYINGPAN" "activity_run" "ACT_RUN_FRYINGPAN" "activity_crouchidle" "ACT_CROUCHIDLE_FRYINGPAN" "activity_crouchwalk" "ACT_RUN_CROUCH_FRYINGPAN" // there isn't a crouched walk with an axe "activity_crouchrun" "ACT_RUN_CROUCH_FRYINGPAN" "activity_idleinjured" "ACT_IDLE_INJURED_FRYINGPAN" "activity_walkinjured" "ACT_WALK_INJURED_FRYINGPAN" "activity_runinjured" "ACT_RUN_INJURED_FRYINGPAN" "activity_idlecalm" "ACT_IDLE_CALM_FRYINGPAN" "activity_walkcalm" "ACT_WALK_FRYINGPAN" // there isn't a calm walk with` an axe "activity_runcalm" "ACT_RUN_FRYINGPAN" // there isn't a calm run with an axe "activity_pulled" "ACT_TERROR_PULLED_RUN_RIFLE" "activity_jump" "ACT_JUMP_FRYINGPAN" "activity_attackprimary" "ACT_VM_PRIMARYATTACK" "activity_attacksecondary" "ACT_SHOOT_SECONDARY_FRYINGPAN" "activity_deploy" "ACT_VM_DRAW" "activity_shove" "ACT_TERROR_SHOVED_FORWARD_MELEE" "addon_attachment" "pistol" "addon_offset" "-3 0 3" "addon_angles" "105 0 0" // Sound data // define the hit and miss sounds SoundData { "melee_miss" "Knife.Miss" "melee_hit" "Knife.ImpactFlesh" "melee_hit_world" "Knife.ImpactWorld" } // Player animation to fire, 0 = PLAYERANIMEVENT_MELEE for now "player_anim_event" "0" // TODO - convert from string to PlayerAnimEvent_t // How long after attacking until the weapon enters its idle animation state "weapon_idle_time" "0.5" // Attack animations (primary and secondary) "primaryattacks" { //"stab1" //{ // "startdir" "E" // "enddir" "W" // "duration" "1.1" // "starttime" "0.05" // "endtime" "0.35" // "activity" "ACT_VM_PRIMARYATTACK" // "player_activity" "ACT_SHOOT_E2W_AXE" // "player_activity_idle" "ACT_SHOOT_E2W_IDLE_AXE" // "force_dir" "20 10 0" //} "slash1" { "startdir" "W" "enddir" "E" "duration" "1.1" "starttime" "0.05" "endtime" "0.35" "activity" "ACT_VM_HITRIGHT" "player_activity" "ACT_SHOOT_W2E_AXE" "player_activity_idle" "ACT_SHOOT_W2E_IDLE_AXE" "force_dir" "8 -4 0" } } "secondaryattacks" { "elbow1" { "startdir" "W" "enddir" "E" "duration" ".7" "starttime" "0.08" "endtime" "0.4" "activity" "ACT_VM_SECONDARYATTACK" "player_activity" "ACT_SHOOT_SECONDARY_AXE" "player_activity_idle" "ACT_SHOOT_SECONDARY_AXE" } } // hud textures "sprite_active" "icon_knife" }