Hey everyone, i recently got interested in LUA scripting and its quite fun but a little confusing. I have already gone through the wiki and have read through the books and done a few tuts and have also done a few from youtube
Here is my main reason for posting, for my first mod i thought it would be easy to make a paintball mod. didn't sound too hard when i was cooking up all the idea's up in my head :D.
Things i know how to do
make the player spawn
setting the player's health to what i want
giving the player weapons i choose
i know how to add different material, like different weapon skins and few others
pretty much the basics of what to do when the player spawn or joins the server
Now i was wanting to add rounds, round 1,2,3 etc etc. and when the people get hit with a paintball to make they appear outside of the arena i will be making.
and i am sure i am missing lots of other stuff.
thanks!
and if anyone wants to help out pm me lets get some idea's flowing and get it going!
and PLEASE if you think this mod will be to complex for a first mod let me what type of a gamemod will be fairly easy to make, don't want to make this too easy though ;) and i also don't give up too easy so this first game mod might be worth making
We appreciate your enthusiasm but consider revising spelling errors as they are important if you are looking for help. I'd consider reading about simple fretta gamemodes, maybeenter it in the contest and win 10 grand.
[editline]02:50AM[/editline]
Maybe enter* -iPhone
Sounds good to me, i will look into it. But i am not getting a few things, i have taken apart some simple addons and game modes and still don't understand where people get most of their commands from...
Alrighty i have started my mod i would test this out my self but i still got a bunch of stuff to do prior to testing, so i thought i would ask you guys!
I am using frettamod for this one, in the tutorial it only shows how to add 1 team so i was wondering if i could use the "elseif" command down below
[code]function GM:CreateTeam()
if ( !GAMEMODE.TeamBased ) then return end
team.SetUp ( TEAM_RED, "Red Team". Color( 255, 0, 0 ), true )
team.SetSpawnPoint( TEAM_RED, { "info_player_start", "info_player_terrorist", "info_player_rebel", "info_player_deathmatch" } )
team.SetClass( TEAM_RED, { "Human" } )
team.SetUp( TEAM_SPECTATOR, "Spectators, Color( 200, 200, 200 ), true )
team.SetSpawnPoint( TEAM_SPECTATOR, { "info_player_start", "info_player_terrorist", "info_player_counterterrorist", "info_player_combine", "info_player_rebel" } )
elseif <-------- would that work?
team.SetUp ( TEAM_BLUE, "Blue Team". Color( 240, 100, 100 ), true )
team.SetSpawnPoint( TEAM_BLUE, { "info_player_start", "info_player_terrorist", "info_player_rebel", "info_player_deathmatch" } )
team.SetClass( TEAM_BLUE, { "Human2" } )
team.SetUp( TEAM_SPECTATOR, "Spectators, Color( 200, 200, 200 ), true )
team.SetSpawnPoint( TEAM_SPECTATOR, { "info_player_start", "info_player_terrorist", "info_player_counterterrorist", "info_player_combine", "info_player_rebel" } )
end
end[/code]
______________
now in the tutorial [url]http://wiki.garrysmod.com/?title=Lua:Fretta[/url] it says to
[QUOTE]Now you need to make a folder called "player_class" in the same folder as shared.lua. In that folder, make a lua file called "class_human" or something similar that is easy to recognize.[/QUOTE]
and at the bottom this is command is posted [code]player_class.Register( "Human", CLASS )[/code] i want to have it execute both of them player_class.Register( "Human", .."Human2", CLASS ) <-- not sure if i did the .."Human2" right
the normal command would just be player_class.Register( "Human", CLASS )
or will it be easier just to make Another lua file called class_human2
sorry if this was confusing
Sorry, you need to Log In to post a reply to this thread.