CakeScript - A Brand New Roleplay Gamemode (It can be any kind, too!)
288 replies, posted
[QUOTE=cosmie]I Can't agree more..
[b]LuaBanana stole Tacoscript.[/b]
Anyways.. If Kama will let me use TacoScript, i will RickRoll and then Perma all of the fags(sorry my attitute) who joins. (just like LuaBanana)[/QUOTE]
First off, let me get this straight, There was no stealing of Taco. Ok For example.
[b]TacoScript: Player_Util.lua File[/b]
[lua]
--Adds help tip to the screen (like the /job text)
--x and y should NOT be bigger then 1 or smaller then 0.
--These coordinates are multiplied by the client's screen width and height.
function AddHelpTip( ply, x, y, w, h, text )
DrawFadingRect( ply, x, y, w, h, 4, 40, 40, 40, 255, 10.0, 200 );
DrawFadingText( ply, x, y, "ChatFont", text, 0, 255, 255, 255, 255, 10.0, 200, false, 4, 4 );
end
function TS.PrintMessageAll( type, msg, ic )
if( ic == nil ) then ic = false; end
ic = !ic;
for k, v in pairs( player.GetAll() ) do
v:PrintMessage( type, msg, ic );
end
end
function DrawFadingText( ply, x, y, font, str, align, r, g, b, a, delay, speed, forever, xo, yo )
umsg.Start( "FadingText", ply );
umsg.Float( x ); umsg.Float( y );
umsg.String( font ); umsg.String( str );
umsg.Short( align );
umsg.Short( r ); umsg.Short( g ); umsg.Short( b ); umsg.Short( a );
umsg.Short( delay );
umsg.Short( speed );
umsg.Bool( forever );
umsg.Short( xo ); umsg.Short( yo );
umsg.End();
end
[/lua]
[b]CakeScript Player_Util.lua file[/b]
[lua]----------------------------
-- CakeScript (March 29, 2008)
-- by LuaBanana
--
-- Alpha Version
-- player_util.lua
----------------------------
function CAKE.InitPlayers()
for k, v in pairs( player.GetAll() ) do
GAMEMODE:PlayerInitialSpawn( v );
end
end
function CAKE.Notify(ply, msg)
ply:PrintMessage(3, msg);
end
function CAKE.DeathMode(ply)
local mdl = ply:GetModel()
local rag = ents.Create("prop_ragdoll")
rag:SetModel(mdl)
rag:SetPos(ply:GetPos())
rag:SetAngles(ply:GetAngles())
rag:Spawn()
ply:SetViewEntity(rag);
ply.deathrag = rag;
local n = #DecayingRagdolls + 1
DecayingRagdolls[n] = ply.deathrag;
ply:SetNWInt("deathmode", 1)
ply.deathtime = 0;
ply.nextsecond = CurTime() + 1;
local function Decay1()
local rag = DecayingRagdolls[n];
rag:Remove();
DecayingRagdolls[n] = nil;
rag = nil;
end
timer.Simple(100, Decay1);
end[/lua]
Big difference...
Second of all do not come in the thread when you do not even know what LUA is...
Anyways, LuaBanana wouldn't "steal" a script. If he did USE it to create his own code, then he used it to LEARN no to steal it.
[quote]Second of all do not come in the thread when you do not even know what LUA is...[/quote]
That's a hard thing to say when 99.9 percent of the people that play GMod are:
A) 5-10 years old
B) Have no idea what a computer is, and think it's a game console. :D
Not to mention that almost half of them are illegally playing GMod. Seriously guys, not every game you gotta have has to be pirated.
I have a problem with my scheme. Every time I start the game up and try to create a character, the models don't show up and when I try to flag, it always says "Invalid Flag!" even though I did !setflags.
[lua]PLUGIN.Name = "Post-Apocalyptic Control RP"
PLUGIN.Type = "Scheme"
if( SERVER ) then
CAKE.AddTeam("Bravarian Soldiers", Color( 255, 165, 0, 255), true, "models/Combine_Black_Soldier.mdl", false, {"weapon_pistol", "weapon_smg1"}, {}, "bs", {1});
CAKE.AddTeam("Bravarian Elite Soldiers", Color(210, 130, 0, 255), true, "models/urbantrenchcoat.mdl", false, {"weapon_pistol", "weapon_ar2", "weapon_smg1", "weapon_ep2sniper"}, {}, "be", {1});
CAKE.AddTeam("Couragian Militia", Color( 0, 165, 255, 255), true, "models/humans/Group03", true, {"weapon_glock", "weapon_mp7"}, {}, "cm", {2});
CAKE.AddTeam("Couragian Tactical Unit", Color( 0, 130, 210, 255), true, "models/Tactical_Rebel.mdl", false, {"weapon_glock, "weapon_scarxxM4", "weapon_mp7", "weapon_dragunov_SVD"}, {}, "ce", {2});
CAKE.AddTeam("Mercenaries", Color( 130, 130, 130, 255 ), true, "models/combine_f_soldier.mdl", false, {"weapon_ak47", "weapon_crowbar"}, {}, "merc", {3});
CAKE.AddModels({"models/humans/group01/male_01.mdl",
"models/humans/group01/male_02.mdl",
"models/humans/group01/male_03.mdl",
"models/humans/group01/male_04.mdl",
"models/humans/group01/male_06.mdl",
"models/humans/group01/male_07.mdl",
"models/humans/group01/male_08.mdl",
"models/humans/group01/male_09.mdl",
"models/humans/group02/male_01.mdl",
"models/humans/group02/male_02.mdl",
"models/humans/group02/male_03.mdl",
"models/humans/group02/male_04.mdl",
"models/humans/group02/male_06.mdl",
"models/humans/group02/male_07.mdl",
"models/humans/group02/male_08.mdl",
"models/humans/group02/male_09.mdl",
"models/humans/group01/female_01.mdl",
"models/humans/group01/female_02.mdl",
"models/humans/group01/female_03.mdl",
"models/humans/group01/female_04.mdl",
"models/humans/group01/female_06.mdl",
"models/humans/group01/female_07.mdl",
"models/humans/group02/female_01.mdl",
"models/humans/group02/female_02.mdl",
"models/humans/group02/female_03.mdl",
"models/humans/group02/female_04.mdl",
"models/humans/group02/female_06.mdl",
"models/humans/group02/female_07.mdl"});
end
[/lua]
I havean idea for cakescript. For lame DMers try this on for size :P
If you are a citizen, if your kills are 5-9 youll have a warent. if its 10 or higher you will get aressted. But if you change from citezen to cop, or vise versa, your kills will reset to 0
[QUOTE=nofearkid]Wierd... Any other addons that may be messing with your chat? Possibly client-side scripts?[/QUOTE]
I just did a thorough check, there is nothing hooking into PlayerSay
hope the next version is compatible with this kinda stuff.
Needs beds.
I said this in the other thread, but I think it needs an armor preset option for teams. That way teams can spawn with a preset armor vest.
[QUOTE=gamerfan987]I havean idea for cakescript. For lame DMers try this on for size :P
If you are a citizen, if your kills are 5-9 youll have a warent. if its 10 or higher you will get aressted. But if you change from citezen to cop, or vise versa, your kills will reset to 0[/QUOTE]
So basically you should make it so you can go kill 4 people, become a cop, then kill some more.
What?
Haha, this gamemode has nothing that is like TS so don't come here and say he stole it fucking assholes.
Can you add Admin-Only Teams, Admin-Placed Only Teams, and Limited Numbers on Teams? and such variables like that?
Team rosters! That's what I was trying to remember! This needs team roster options.
So you want to be able to display everyone that is on a certain team?
That would require some reworking of the way my script loads data. :uhoh:
Finally got PlayerSay to work, forgot I had VoiceMenu too...
No, when I say team rosters, I mean a table where you put down users allowed to go to a certain team when they join. That way, they don't have to bug an admin about switching teams for them. Or is that what flagging does?
We need some more options for the scheme's. Like adding tabs and items to the F1 GUI thingy. That will make it much easier for people to customize the look of their servers variation of CakeScript.
And I think someone else already said it, but we need some way to restrict classes too. Or is that already added? I'm kinda confused by flagging too.
[QUOTE=Jeffman12]No, when I say team rosters, I mean a table where you put down users allowed to go to a certain team when they join. That way, they don't have to bug an admin about switching teams for them. Or is that what flagging does?[/QUOTE]
That's what flagging does. Admin sets what teams they can be a part of by using rp_setflags, then the player can use rp_flag with that character at any time to become part of that team.
So LB, what's going to be in your next RC? I really enjoy playing around with this.
Context menus, sliding playerinfo bar, etc.
[b]Edit:[/b]
Alright, inventory and items are fully implemented, as well as door renting and money.
How about trying to fix compatibility with ULX or adding some kind of epic admin menu that's integrated into Cakescript :D ?
Apparently it IS compatible for some people.. :uhoh:
[QUOTE=LuaBanana]Apparently it IS compatible for some people.. :uhoh:[/QUOTE]
It works for me.
Everything works except the ULX maplist.
:raise:
[QUOTE=LuaBanana]Apparently it IS compatible for some people.. :uhoh:[/QUOTE]
Not on a Dedicated Server to what I know...
Either way, an inbuilt admin-mod would be pretty epic as well (or some kind of money mod, most RP's need an economy :D)
Can someone help me with this i can't create a new character!
[QUOTE=Miniswish]Not on a Dedicated Server to what I know...
Either way, an inbuilt admin-mod would be pretty epic as well (or some kind of money mod, most RP's need an economy :D)[/QUOTE]
Are you shitting me? 90% of the people who play RP can barely SPELL "economy" much less maintain one.
Seriously, this mod is fine as it is. If you need to do anything other than kick and ban you're probably abusing your rights as it is.
So until there's a way to make ULX and CakeScript 100% compatible just stick to the [URL=http://developer.valvesoftware.com/wiki/Console_Command_List]commands valve gave you[/URL] . There's plenty of them and they're not so difficult once you learn to read :downs:
Plus, this has already hit Version 4, you think Banana wants to spend weeks trying to figure out what the fuck is causing compatibility problems just to release another version? No. Probably not.
[QUOTE=Asstron]Are you shitting me? 90% of the people who play RP can barely SPELL "economy" much less maintain one.[/QUOTE]
Yeah, it don't need any money mod, its fine how it is. I was just playing it on my clans server, Plus isn't kinda like a half-life 2 role play?
Still some form of money is useful, if not fair dos anyway I was led to believe it was Playersay Hooks leading to this compatibility problem.
Then you tell me that I need to use the default kick and ban commands, What if the server admin won't give you rcon and isn't on during the time you are on? meaning mingebags have control and you can't do nothing to stop them?
And even if Lua released Version 4, they could work on it perhaps in spare time and release it as a quick fix in the future... something along those lines perhaps?
[QUOTE=Kil0y]Can someone help me with this i can't create a new character![/QUOTE]
I too...
I agree with the not needing an admin mod. I've gotten along just fine using the kick/ban commands that are included with Source.
[QUOTE=Asstron]Are you shitting me? 90% of the people who play RP can barely SPELL "economy" much less maintain one.[/QUOTE]
Money, however, is a feature in every RP mod I've played. It ranges from simple to player controlled.
In simple, you just set a job and you gain money in "paycheck" intervals.
In player controlled admins are pretty much in charge of creating new money to circulate in the economy. This causes everyone to get rich after a while because there is no place the money can dissipate, and players can't be expected to compensate for inflation. Even door buying doesn't cut it down quick enough after a while.
Apparently Banana isn't releasing any more versions of this other than RC2?
RC4 is the first version that actually lets the players DO anything, so what the hell.
[QUOTE=gonedead0]I have a problem with my scheme. Every time I start the game up and try to create a character, the models don't show up and when I try to flag, it always says "Invalid Flag!" even though I did !setflags.
[lua]PLUGIN.Name = "Post-Apocalyptic Control RP"
PLUGIN.Type = "Scheme"
if( SERVER ) then
CAKE.AddTeam("Bravarian Soldiers", Color( 255, 165, 0, 255), true, "models/Combine_Black_Soldier.mdl", false, {"weapon_pistol", "weapon_smg1"}, {}, "bs", {1});
CAKE.AddTeam("Bravarian Elite Soldiers", Color(210, 130, 0, 255), true, "models/urbantrenchcoat.mdl", false, {"weapon_pistol", "weapon_ar2", "weapon_smg1", "weapon_ep2sniper"}, {}, "be", {1});
CAKE.AddTeam("Couragian Militia", Color( 0, 165, 255, 255), true, "models/humans/Group03", true, {"weapon_glock", "weapon_mp7"}, {}, "cm", {2});
CAKE.AddTeam("Couragian Tactical Unit", Color( 0, 130, 210, 255), true, "models/Tactical_Rebel.mdl", false, {"weapon_glock, "weapon_scarxxM4", "weapon_mp7", "weapon_dragunov_SVD"}, {}, "ce", {2});
CAKE.AddTeam("Mercenaries", Color( 130, 130, 130, 255 ), true, "models/combine_f_soldier.mdl", false, {"weapon_ak47", "weapon_crowbar"}, {}, "merc", {3});
CAKE.AddModels({"models/humans/group01/male_01.mdl",
"models/humans/group01/male_02.mdl",
"models/humans/group01/male_03.mdl",
"models/humans/group01/male_04.mdl",
"models/humans/group01/male_06.mdl",
"models/humans/group01/male_07.mdl",
"models/humans/group01/male_08.mdl",
"models/humans/group01/male_09.mdl",
"models/humans/group02/male_01.mdl",
"models/humans/group02/male_02.mdl",
"models/humans/group02/male_03.mdl",
"models/humans/group02/male_04.mdl",
"models/humans/group02/male_06.mdl",
"models/humans/group02/male_07.mdl",
"models/humans/group02/male_08.mdl",
"models/humans/group02/male_09.mdl",
"models/humans/group01/female_01.mdl",
"models/humans/group01/female_02.mdl",
"models/humans/group01/female_03.mdl",
"models/humans/group01/female_04.mdl",
"models/humans/group01/female_06.mdl",
"models/humans/group01/female_07.mdl",
"models/humans/group02/female_01.mdl",
"models/humans/group02/female_02.mdl",
"models/humans/group02/female_03.mdl",
"models/humans/group02/female_04.mdl",
"models/humans/group02/female_06.mdl",
"models/humans/group02/female_07.mdl"});
end
[/lua][/QUOTE]
Same here.
Sorry, you need to Log In to post a reply to this thread.