Garry's Mod

Garry's Mod

Prophunters
Wanchai 24 Nov, 2018 @ 11:36am
I WILL HELP YA GUYS
For anybody trying to set a team limit, change roudn time or else, POST THAT HERE AND I WILL HELP YAAAAA
ps : will do if i can
pps : Can do -> round time
Working on -> 1 hunter max
Can do -> change default player model
< >
Showing 1-15 of 19 comments
Hakatron 26 Nov, 2018 @ 4:01pm 
Hello ! Like many i want only one random hunter when playing with my friends in our own game room. Have you figured it out yet ? Thank you !
Last edited by Hakatron; 26 Nov, 2018 @ 4:01pm
Wanchai 27 Nov, 2018 @ 8:57am 
Yup I did, AFTER 20 HOURS OF TRIAL & ERROR (i'm a very bad coder)

If you got a dedicated server, here is the must-have :

Get the prophunters addon FOLDER and not .gma

How to do that ? Ask google, or me but I'll post that tomorrow k ?

Then, let's say you installed the prophunters addon on your dedicated server in its /addons folder. In the prophunters folder, go to \gamemodes\prophunters\gamemode
In here you should find at the bottom a file named sv_teams.lua

Open it with Notepad ++ (or default text editor if you dare do) and search for the SwapTeams function at the bottom of the file.
The start should look like :

function GM:SwapTeams()

From that line, delete everything from "function GM:SwapTeams()" to the bottom, and copy-paste this :

function GM:SwapTeams()

for k, ply in pairs(player.GetAll()) do
if ply:Team() == 2 then
ply:SetTeam(3)
end
end

print(#team.GetPlayers(2))

local ct = ChatText()
local maxhunters = 2 -- HuntersMax = Nombre + 1
local hunters = #team.GetPlayers(2)

-- The variable nbmaxhunters define how much hunters you want
-- If yo want only 1 hunter, set it to 0 (trust me, it's because of my bad code)
-- If you want 2 hunters, set it to 1. If you want 3 hunters, set it to 2...
-- Use this mathematic formula if you're not sure
-- HowMuchHuntersYouWant - 1 = nbmaxhunters

local nbmaxhunters = 0


if hunters != maxhunters then -- Bug fixed, weird use of repeat loop

print("[PropHunters] Pas assez de Hunters ! ")

for h=0, nbmaxhunters do

local randomprop = table.Random(team.GetPlayers(3))
local randomprop_str = tostring(randomprop)

randomprop:SetTeam(2)
randomprop:Spawn()

local h = h + 1

print("Nouveau hunter : " .. randomprop_str )

print(h)

end

print("")
print("[PropHunters] Nouveau nombre de hunters = " .. #team.GetPlayers(2))

end

end

Save the file, and you should be good to go.
In case your whole server exploded because of me, add me on Steam and I'll help you. I may not be here at anytime, i'm still a student lmao.
good night guys
Last edited by Wanchai; 27 Nov, 2018 @ 9:06am
Hakatron 27 Nov, 2018 @ 11:53am 
Haha fellow Frenchman here, merci for your help !

I've read we needed to edit the sv_teams.lua file, thank you for the code.

Unfortunately I don't have any prophunt folder in my garrysmod\gamemodes folder. I read I needed to download this mod through github and copy/paste the folder but it didn't work. The gamemode doesn't appear in the game...

Also, I don't have a dedicated server, I just want to create a lobby with my friends. Would your fixe still work ?
Wanchai 28 Nov, 2018 @ 4:41am 
If you want to play with your friends, you might want to create a dedicated server (unless you guys all live nearby and can create a LAN, that would be WAAY easier). So I suggest you create your dedicated server first, there are plenty of tutorials out there in th wild of the Internet. When you finished this, come back and I'll help you install the gamemode

Quest Acquired : Create a dedicated server for you and your friends
Linkose 2 Mar, 2019 @ 8:07am 
Hey, how can I set a fix timer ?
Because 18minutes for 5 players is a little bit much.

If I have to give a value I would say 5minutes.
Can you help me ?


Last edited by Linkose; 2 Mar, 2019 @ 8:08am
Wanchai 6 Mar, 2019 @ 10:11am 
Originally posted by Linkose:
Hey, how can I set a fix timer ?
Because 18minutes for 5 players is a little bit much.

If I have to give a value I would say 5minutes.
Can you help me ?

Actually, the round time is calculated with the number of props, of hunters and of "disguisable" props. I'll search the line to modify and i'll tell you here
Last edited by Wanchai; 6 Mar, 2019 @ 10:12am
Linkose 7 Mar, 2019 @ 12:22am 
I think this : "self.RoundSettings.RoundTime = math.Round((c * 0.5 / hunters + 60 * 4) * math.sqrt(props / hunters))" is the line, I just couldn't simply modify it with a number (300).
(->Garry's mod wouldn't find the gamemode)
Wanchai 9 Mar, 2019 @ 5:26am 
Strange, I assume you may have deleted some spaces or another common error idunno, try and copy paste the line

self.RoundSettings.RoundTime = 300

Remember to do a proper indenting with the other lines
If it still doesn't work, try to reinstall the addon and do it again
Last edited by Wanchai; 9 Mar, 2019 @ 5:27am
Antoine Smith 3 May, 2019 @ 1:58pm 
How can I zoom out of the prop??
Break Ya Neck 19 Apr, 2020 @ 3:00pm 
Hello, I have a dedicated server running, how do I install the gamemode?
I have the prophunters-master folder downloaded...
Wanchai 19 Apr, 2020 @ 3:20pm 
Originally posted by Break Ya Neck:
Hello, I have a dedicated server running, how do I install the gamemode?
I have the prophunters-master folder downloaded...
add me on steam, we'll discuss this more easily in PMs
Rapa Sarda 13 May, 2020 @ 3:33am 
Hi, i would like to know how to run on this gamemode
Wanchai 13 May, 2020 @ 7:30am 
Originally posted by Rapa Sarda:
Hi, i would like to know how to run on this gamemode

Hey, there's a plenty of tutorials out there to learn how to make your own server, and installing custom gamemodes, I can't help you on something like that.

However if you find yourself having any difficulties with port-forwarding, I'd be happy to help !
It's the most hardest task in setting up a dedicated server.
goopers 29 Dec, 2020 @ 4:44pm 
Hello, whenever I open up a game of Prophunters, I get the following error messages in the console:
_________________

Client loaded taunts file default.lua
Error: Material "debug/debuglightmap" uses unknown shader "LightmappedGeneric_dx8"
Error: Material "models/humans/female/pupil_r" uses unknown shader "Eyeball"
Error: Material "models/humans/female/pupil_l" uses unknown shader "Eyeball"
Requesting texture value from var "$basetexture" which is not a texture value (material: dev/bloomadd)
Requesting texture value from var "$basetexture" which is not a texture value (material: dev/no_pixel_write)
Requesting texture value from var "$basetexture" which is not a texture value (material: dev/lumcompare)
Reinitialized 0 predictable entities
Redownloading all lightmaps
Failed to load sound "ambient/tones/roomtone1.wav", file probably missing from disk/repository
Failed to load sound "ambient/nature/woodland_ambient_1.wav", file probably missing from disk/repository
Failed to load sound "crash/crash_music.mp3", file probably missing from disk/repository
___________________

Could you please explain to me what the problem is and how I can fix it? If you are unable to find a fix for this, please let me know as well.

*Note: I am running the x86-64 Chromium version of the game

Thanks!
Wanchai 30 Dec, 2020 @ 8:38am 
Originally posted by neiv06:
Hello, whenever I open up a game of Prophunters, I get the following error messages in the console:
_________________

Client loaded taunts file default.lua
Error: Material "debug/debuglightmap" uses unknown shader "LightmappedGeneric_dx8"
Error: Material "models/humans/female/pupil_r" uses unknown shader "Eyeball"
Error: Material "models/humans/female/pupil_l" uses unknown shader "Eyeball"
Requesting texture value from var "$basetexture" which is not a texture value (material: dev/bloomadd)
Requesting texture value from var "$basetexture" which is not a texture value (material: dev/no_pixel_write)
Requesting texture value from var "$basetexture" which is not a texture value (material: dev/lumcompare)
Reinitialized 0 predictable entities
Redownloading all lightmaps
Failed to load sound "ambient/tones/roomtone1.wav", file probably missing from disk/repository
Failed to load sound "ambient/nature/woodland_ambient_1.wav", file probably missing from disk/repository
Failed to load sound "crash/crash_music.mp3", file probably missing from disk/repository
___________________

Could you please explain to me what the problem is and how I can fix it? If you are unable to find a fix for this, please let me know as well.

*Note: I am running the x86-64 Chromium version of the game

Thanks!

I'm afraid I can't help you on that one, but from what I can see you should be able to ignore those errors
For the missing sound, my guess is either the files aren't there, or they're in the wrong frequency (44100 Hz)
Can't help you further than that, I don't know anything about the specifics of the Chromium version.
< >
Showing 1-15 of 19 comments
Per page: 1530 50