Garry's Mod

Garry's Mod

Followers Mod
meierhans 26 Jun, 2022 @ 5:44am
Fixed ConVar limits in followers_mod.lua
The reason for the addon stopping to work are wrong limits in followers_mod.lua.
Here is the code with correct values added.

from line 786:
if !ConVarExists("fmod_enable") then CreateConVar("fmod_enable", '1', (FCVAR_ARCHIVE), "Enable or Disable followers mod.", 0, 1) end if !ConVarExists("fmod_min_call_dist") then CreateConVar("fmod_min_call_dist", '80', (FCVAR_ARCHIVE), "Minimal distance to call for follower.", 0, 2000) end if !ConVarExists("fmod_min_spot_dist") then CreateConVar("fmod_min_spot_dist", '2000', (FCVAR_ARCHIVE), "Minimal distance to spot enemies for your followers.", 0, 3000) end -- if !ConVarExists("fmod_allow_collisions") then CreateConVar("fmod_allow_collisions", '1', (FCVAR_ARCHIVE), "If 0, following you NPCs will not collide with you.", 0, 1) end -- if !ConVarExists("fmod_allow_ff") then CreateConVar("fmod_allow_ff", '1', (FCVAR_ARCHIVE), "If 1, it will prevent the friendly fire.", 0, 1) end if !ConVarExists("fmod_buff_damage") then CreateConVar("fmod_buff_damage", '0', (FCVAR_ARCHIVE), "Set damage of your followers.", 0, 1) end if !ConVarExists("fmod_buff_resistance") then CreateConVar("fmod_buff_resistance", '0', (FCVAR_ARCHIVE), "Set resistance of your followers.", 0, 10) end if !ConVarExists("fmod_buff_proficiency") then CreateConVar("fmod_buff_proficiency", '2', (FCVAR_ARCHIVE), "Set weapon proficiency of your followers.", 0, 10) end if !ConVarExists("fmod_followers_speak") then CreateConVar("fmod_followers_speak", '1', (FCVAR_ARCHIVE), "If 1, followers will tell you if they will follow you or stay at thier positions.", 0, 1) end if !ConVarExists("fmod_auto_teleport") then CreateConVar("fmod_auto_teleport", '1', (FCVAR_ARCHIVE), "If your followers can't reach you, they will teleport at your position (behind you).", 0, 1) end if !ConVarExists("fmod_followers_enter_vehicles") then CreateConVar("fmod_followers_enter_vehicles", '1', (FCVAR_ARCHIVE), "Allow Your followers to enter vehicles.", 0, 1) end if !ConVarExists("fmod_vehicle_max_dist") then CreateConVar("fmod_vehicle_max_dist", '120', (FCVAR_ARCHIVE), "How close Your followers has to be to enter a vehicle/seat.", 0, 400) end

I uploaded the modified GMA file here:
Download [dl.uploadgram.me]

The file lives in:
\steam\steamapps\workshop\content\4000\800276470

Hope the dev will fix the issue on the main release soon.
< >
Showing 1-1 of 1 comments
SirSwerving 2 Aug, 2022 @ 9:30am 
After doing this the game kept spamming errors about line 1088 and breaks being able to dismiss followers, Though it seems to be fixed (i think) by changing the line to.
ent:SetName(ply:EntIndex())
Though this has the consequence of giving an error whenever they die, Though this can avoided by removing the line "RemFoll(npc)" at 1577
Last edited by SirSwerving; 2 Aug, 2022 @ 1:10pm
< >
Showing 1-1 of 1 comments
Per page: 1530 50