Garry's Mod

Garry's Mod

684 个评价
NPC Melee Attack
2
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 特效
插件标签: 快乐, 角色扮演, 写实
文件大小
发表于
更新日期
15.627 KB
2024 年 6 月 16 日 上午 12:44
2024 年 6 月 19 日 上午 2:01
3 项改动说明 ( 查看 )

订阅以下载
NPC Melee Attack

在 Limakenori 的 2 个合集中
Limakenori's addons
94 件物品
EZmod
15 件物品
描述
Hello there! Welcome to NPC Melee Attack addon
This addon adds simple melee attack for NPC that don't have it

Features:
Unarmed NPCs with melee attack from this addon are more aggressive(cool for hand-to-hand fights)
Miss/hit sound
Hit sound based on damage
Viewpunch based on damage
Pushing
NPC with melee weapon won't do melee attack(with exception for weapons that are in the White list)
DSS Support

Supports:
Supported NPCs by default:
npc_metropolice, npc_alyx, npc_barney, npc_odessa, npc_citizen and NPCs that you can add with settings

Commands:
1. meleeattack_npcs_add - this command add ability for unsupported by default NPC to use grenade throwing
Example: meleeattack_npcs_add npc_citizen 10 0.5 "meleeattack01" 0.5 80 90 0 0 0 0
First value is NPC's class; second value is attack's damage; third value is time until damage; fourth value is melee animation(don't put gestures here!!!); fifth value is attack cooldown; sixth value is attack distance; seventh value is damage distance; eighth value is should NPC do melee only if armed?(0 - false, 1 - true); other values are push strenght(forward, right, up)

2. meleeattack_npcs_edit - this command edits 1 value from supported NPCs
Example: grenthrow_npcs_edit npc_citizen attachement "anim_attachment_lh"
First value is NPC's class; second value is the value you want to change in supported NPC; third value is what you want to change previous value to
Values list:
damage - number
damagetime - number
animation - animation name
cooldown - number
distance - number
damage distance - number
onlyifarmed - number (0 - false, 1 - true)
forward - number
right - number
up - number

3. meleeattack_npcs_remove - this command removes NPC's ability to melee attack
Example: grenthrow_npcs_remove npc_citizen
First value is NPC's class

4. meleeattack_npcs_reload - this commands reloads list of the NPCs that can do melee attack
Example: meleeattack_npcs_reload

4. meleeattack_npcs_add_animation - this commands adds animation for NPC's melee attack
Example: meleeattack_npcs_add_animation npc_metropolice thrust
First value is NPC's class, second is animation's name

6. meleeattack_wl_add - add melee weapon to the White list
Example: meleeattack_wl_add weapon_crowbar

7. meleeattack_wl_remove - remove melee weapon from the White list
Example: meleeattack_wl_remove weapon_crowbar

8. meleeattack_wl_check - check the White list
Example: meleeattack_wl_remove

9. meleeattack_wl_reload - reload the White list
Example: meleeattack_wl_reload

Settings:
Tool Panel >> Options >> Limakenori >> NPC Melee Attacks

Enjoy!

Tags: DSS NPC Weapon battle fight Gordon entropy ezt ez2 limakenori xengrenade weapon ar2 proto xenians expanded beneathacle water NPC HL half life BMS Mesa main character


Credits:
C0Mb0STR3Kx20 and Limakenori(me) - coding.
热门讨论 查看全部(1)
23
2024 年 10 月 18 日 下午 12:08
Bug Reports/Suggestions
Limakenori
89 条留言
DeadDraco 7 月 24 日 下午 10:57 
Woah wait what was that addon that made the zombie grab in the video?
mosesjr0527 7 月 1 日 下午 9:36 
Will there be an update one day for them to block melee attacks if possible?
karkus 6 月 15 日 上午 6:24 
how do I remove animations
TheDesertRoad 5 月 23 日 下午 7:04 
when they die they still punching
giorgibob152 4 月 27 日 上午 11:34 
time to make riot come true
jfernandez2202 4 月 18 日 上午 8:12 
Npcs still do the melee attack animation while their holding a lightsaber and a tfa melee weapon
MissingTexture 2 月 1 日 上午 9:07 
If you spawn an NPC, let it attack you for atleast a tiny bit, then set Ignore Players to true, the NPC will chase the player and start meleeing them, even though they shouldn't, because they're meant to be ignoring them. Please fix this.
Maqsud101 1 月 9 日 上午 6:01 
Theres any metrocop stunstick anim for playermodel?
Night Walker 2024 年 12 月 15 日 上午 11:02 
Can you make another NPC Melee Attack mod but their like star wars jedi Survivor attacks and dodges or would be like ASSASSIN'sS CREED npcs battles? Please?
Mr.4ox 2024 年 11 月 16 日 上午 11:14 
Real beyta