Garry's Mod

Garry's Mod

ANPlus [BASE] | Replacer Update
 此主题已被置顶,因此可能具有重要性
filz0  [开发者] 2022 年 10 月 22 日 下午 6:08
[NPC TEMPLATE]
Github (finally figured it out):
https://github.com/filz0/anplus_base

Here's an empty template:
https://github.com/filz0/anplus_base/blob/main/lua/autorun/_template_empty.lua

Template NPC:
https://github.com/filz0/anplus_base/blob/main/lua/autorun/template_npc.lua

Some changes might need you to go back to the main menu for them to load properly.

Ask any questions below.
最后由 filz0 编辑于; 2023 年 2 月 2 日 下午 10:01
< >
正在显示第 1 - 15 条,共 27 条留言
ToastLord 2022 年 10 月 27 日 下午 6:14 
Heya; I wanted to try my hand at the sound modification section for a npc_combine_s class npc, in a similar way how you did for the phoenix NPCs. This is the edit I made so far to the sound portion:

['SoundModification'] = { --['OverPitch'] = { 90, 110 }, -- Pitch override for realistic random voices. ['SoundList'] = { [1] = {"npc/combine_soldier/", ['SoundLevel'] = { 20 }, ['Pitch'] = nil, ['Channel'] = nil, ['Volume'] = { 0.3 }, ['Flags'] = 1024, ['DSP'] = 38, ['Replacement'] = nil} }, },

Unfortunately I'm not getting any changes from the combine voice lines, its still the same pitch without the voice-effect as the phoenix NPCs.

Just incase, I've also tried the npc path itself with just
"npc/"
With no dice. Any recommendations on where I might have gone wrong? If needed I can paste bin the entire .lua file.

Appreciate the help
filz0  [开发者] 2022 年 10 月 28 日 上午 3:12 
Sadly Combine Soldiers and Metro police will not work because Lua doesn't detect them emitting any sounds. I've yet to find a way. "EntityEmitSound" hook doesn't pick scripted sequences that they use so unless this is fixed, I can't do much.
最后由 filz0 编辑于; 2022 年 10 月 28 日 上午 3:44
ToastLord 2022 年 10 月 28 日 上午 6:32 
Ahh, I gotcha. Bummer, I was hoping to make an npc using one of the alyx combine voice lines. But now I know its at least not my lack of coding, but a limit of the game.

Appreciate the help, ill see about experimenting with the vort npcs as well
Bullshit Man 2022 年 10 月 29 日 上午 9:36 
is their a video tutorial for this mod?
Redox 2022 年 11 月 3 日 上午 6:01 
Instead of 'if ANPlusLoaded == true then' at the top of these files it'd be better to do 'if ANPlusLoaded then return end'
filz0  [开发者] 2022 年 11 月 3 日 上午 6:14 
引用自 Redox
Instead of 'if ANPlusLoaded == true then' at the top of these files it'd be better to do 'if ANPlusLoaded then return end'
*snort* Ackchyually it would be "if !ANPlusLoaded then return end". But in all seriousness, it's a good point.
melomelo 2022 年 11 月 25 日 上午 2:41 
Cool mod. If ever, does this addon make a vanilla NPC have certain attributes like being medics? I have a certain NPC whose role is to function as a nurse/doctor by healing people, but they don't. Does this mod make that happen? Thank you!
filz0  [开发者] 2022 年 11 月 25 日 上午 3:53 
if you mean like turning citizens/rebels into medics then yeah.
['KeyValues'] = { citizentype = CT_REBEL, SquadName = "resistance" }, ['SpawnFlags'] = SERVER and bit.bor( SF_NPC_DROP_HEALTHKIT, SF_CITIZEN_MEDIC ) or nil,
Заморил деда 2023 年 1 月 14 日 上午 11:30 
Am i dumb or something?

ANPlus removed weapon A from NPC. Weapon is not valid or its BASE has not been installed/enabled.

This weapon does exist and i susable by both npc and player, why doesn't it see it?
What am i missing???

For more context: I am using Simple Weapons: Base (I like it) but it seems to not work with ["DefaultWeapons"] of npc.
最后由 Заморил деда 编辑于; 2023 年 1 月 14 日 上午 11:30
filz0  [开发者] 2023 年 1 月 14 日 下午 12:54 
That feature will be removed in the next update.
filz0  [开发者] 2023 年 1 月 14 日 下午 4:11 
While it's still here, ANP checks if a weapon in ["DefaultWeapons"] tab has it's base installed.
filz0  [开发者] 2023 年 1 月 14 日 下午 4:12 
If not, it gets replaced.
Заморил деда 2023 年 1 月 15 日 上午 10:31 
It works kinda janky i think, because it says that even tho weapons base IS installed.
Btw where did combine medic go?
filz0  [开发者] 2023 年 1 月 15 日 上午 10:38 
Removed as it will be moved to the Combine Units Plus. I'm in middle of making the workshop icon.
filz0  [开发者] 2023 年 1 月 15 日 上午 10:39 
Weapon replacement function also has been removed with this update.
< >
正在显示第 1 - 15 条,共 27 条留言
每页显示数: 1530 50