Some recent fixes/adds
Added GM:PlayerReconnected( pl ) for when players leave and join again in the same game (it's only called if a player was in the server previously)
Fixed bug where GameEnd could be called twice to create 2 votes
[QUOTE=Nerdeboy;16436491]Why are you quicksaving in multiplayer?[/QUOTE]
What?
Start up a single player game, press F6 and see if you crash. Even the "Save game" from the menu crashes. How on earth does multiplayer come into this?
Doesn't crash for me.
I think there should be some sort of "showgamemodes" command so you can look at all the gamemodes before you VoteForChange.
[QUOTE=Entoros;16445489]I think there should be some sort of "showgamemodes" command so you can look at all the gamemodes before you VoteForChange.[/QUOTE]
I request this also. Though I needed it more for a debugging purpose. It would be nice to know all the gamemodes the server is running when joining.
Garry, ENT:CalcView() doesn't seem to work in Fretta (try spawning the hoverboard); I think it's being overridden by CLASS:CalcView()? Whatever causes it, it makes it harder to code scripted vehicles for Fretta gamemodes.
[b]Edit:[/b]
Nevermind, its easy enough to add on your own. For some reason I thought ENT:CalcView had to be called by the engine. :downs:
(Adding it by default to fretta would still be cool though)
I wonder if it would be possible to have Player:CreateRagdoll() and Player:GetRagdollEntity() for NPCs too. Creating server side ragdolls for NPCs is not the best sollution, and it's not bandwidth-wise at all.
Look at the code for zombies in ZO. They use clientside ragdolls
Those are client sided? Well.. it's still kind of hacky.
Something I'd like is an option like GM.ShowHelpOnJoin = true/false. This would make the F1 menu come up after your first clicked off the fretta join screen. This would be helpful in a lot of gamemodes because there are so many people too idiotic to even press F1 to learn more about the gamemode, and it's a pain to try and explain it to every newcomer.
All that would do is just put the help screen between the join screen and the team selection screen. Maybe even add a checkbox on the help screen to skip it for that particular gamemode in the future.
[QUOTE=grea$emonkey;16455207]Something I'd like is an option like GM.ShowHelpOnJoin = true/false. This would make the F1 menu come up after your first clicked off the fretta join screen. This would be helpful in a lot of gamemodes because there are so many people too idiotic to even press F1 to learn more about the gamemode, and it's a pain to try and explain it to every newcomer.
All that would do is just put the help screen between the join screen and the team selection screen. Maybe even add a checkbox on the help screen to skip it for that particular gamemode in the future.[/QUOTE]
I don't think players are stupid if they simply don't know F1 is the help key, but I think that's even more reason to add this - by default - and have more indications of 'Press F1 to show help' around too.
[QUOTE=Devenger;16455384]I don't think players are stupid if they simply don't know F1 is the help key, but I think that's even more reason to add this - by default - and have more indications of 'Press F1 to show help' around too.[/QUOTE]
Exactly my point.
I'd like to see an expanded help button for very complex gamemodes.
new post near bottem
[QUOTE=abitofpoland;16477289]ranbow if you still need photo shop help i can do it for you. ive been a photographer for years now and love to use photo shop. i have a simple request though
[editline]01:17PM[/editline]
i need help to upload fretta onto my server. superadmin for free if you do it and it works. much appreciated.[/QUOTE]
Get the SVN from the link in the OP. Get the gamemode stuff. Start up with one of the gamemodes not entitled "fretta", "sandbox", or "base."
???
Profit!
Anyone else having trouble with hooks not being called?
Hook list i'm referring to is [url]http://wiki.garrysmod.com/?title=Gamemode_Hooks[/url] Fretta section at bottom.
Hey, remove c_padded_v2.bsp from the svn. I'm realizing that it's too small of a map now.
[QUOTE=JSharpe;16508900]Anyone else having trouble with hooks not being called?
Hook list i'm referring to is [url]http://wiki.garrysmod.com/?title=Gamemode_Hooks[/url] Fretta section at bottom.[/QUOTE]
Some of them are only called at certain times. Which ones are giving you trouble?
[lua]
function OnPreStartRounddd( num )
print("\n\n\n\n PreStart! \n\n\n\n\n")
end
hook.Add("OnPreRoundStart", "EditedFunctionStartRound", OnPreStartRounddd)
function StartRoundftgh ()
print("\n\n\n\n\n\n StartRound\n\n\n\n\n\n")
end
hook.Add("RoundStart","AESFASFASFASEFASEFASEF",StartRoundftgh)
[/lua]
neither of them get called ever in a full game from start to finish. Yet everything says that the fretta has derived from base and that my gamemode has derived from fretta.
Agh no. Whoever updated the wiki is doing it wrong.
These aren't functions you hook to, they're empty functions that you're left to fill in yourself.
For example, this is OnRoundEnd in Fretta:
[lua]
function GM:OnRoundEnd( num )
end[/lua]
Now let's say i make a gamemode that derives from fretta and i want to Ban every player on round number 5. I'd do something like this in my code in init.lua:
[lua]
function GM:OnRoundEnd( num )
if num == 5 then
for k, v in pairs player.GetAll() do v:Ban( FOREVER ) end
end
end[/lua]
A bunch of the functions listed under fretta hooks in the gmod wiki aren't even anything you should be editing (ie. GM:InRound, etc).
[QUOTE=Rambo_6;16509990]
These aren't functions you hook to, they're empty functions that you're left to fill in yourself.
[/QUOTE]
Couldn't you just do something like this in the relevant code block?
[code]
gamemode.Call( "OnRoundEnd", num )
[/code]
It still calls referenced function, but also actually supports hooking.
Is there a reason why it's not supporting hooking?
i dunno you really don't need more than one function linked to one of the round controller functions
in other news i gave bombtag a facelift since it was half-baked and ugly.
[IMG]http://i232.photobucket.com/albums/ee200/SechsCock/bt_octagon0013.jpg[/IMG]
[IMG]http://i232.photobucket.com/albums/ee200/SechsCock/bt_octagon0015.jpg[/IMG]
the people who die don't have to sit out forever now, they actually have a role. I'll let you guys find that out for yourselves.
[QUOTE=Kogitsune;16510231]Couldn't you just do something like this in the relevant code block?
[code]
gamemode.Call( "OnRoundEnd", num )
[/code]
It still calls referenced function, but also actually supports hooking.
Is there a reason why it's not supporting hooking?[/QUOTE]
Because you don't need to.. If you want to code your gamemode to support hooking then add it in your gamemode function - but generally gamemodes shouldn't be made in hooks, they should be made in the gamemode table.
hey. um i had followed the retards guide to getting the fretta beta and uploaded everything from my desktop into my ftp's orangebox/garrysmod/gamemodes and from there i created a folder called "fretta" and uploaded all the files into that folder, and frettas still not working. im wondering if anyone could help me find out why.
[editline]05:01PM[/editline]
and dont just rate it dumb actually help please. i have uploaded other gamemodes and stuff like this before but i have no idea why its not working. please help as i said
You overwrite the garrysmod folder in your FTP with the garrysmod you download.
[QUOTE=Yobdren;16521083]You overwrite the garrysmod folder in your FTP with the garrysmod you download.[/QUOTE]
thanks man i hope this works
[editline]05:33PM[/editline]
now you mean garrysmod by, orangebox/garrysmod right like replace the garrys mod there with the downloaded garrys mod.
When you download your SVN, you downloaded it to a folder in SourceMods called "garrysmod", right?
[QUOTE=Yobdren;16521349]When you download your SVN, you downloaded it to a folder in SourceMods called "garrysmod", right?[/QUOTE]
ofcourse
[QUOTE=abitofpoland;16521570]ofcourse[/QUOTE]
Take that folder and overwrite the garrysmod/garrysmod/ folder in your FTP
[QUOTE=Yobdren;16521650]Take that folder and overwrite the garrysmod/garrysmod/ folder in your FTP[/QUOTE]
so garrysmod/garrys mod not orangebox/garrysmod
Sorry, you need to Log In to post a reply to this thread.