• ZoneScript, a NutScript STALKER Schema (Incomplete/Discontinued)
    20 replies, posted
[b]YOU MAY USE MY CODE IN YOUR GAMEMODE, SO LONG AS I GET CREDIT.[/b] [b]This IS incomplete, there is bound to be problems![/b] So yeah, this is ZoneScript, I've included my copy of NutScript (IT IS OLD, UPDATE IT!) and a copy of ZoneScript (WHICH IS ALSO OUTDATED!) It has some basic stuff: Hitgroups for head, arms, legs, etc Legs break when shot (Not made by me.) "Detectors" (hardcoded, not an item, never finished.) Food (Never used, was using Rebel's hunger system) Faction Transferring A decent looking HUD (Made by Danny, modified by me.) Useful console commands, and other stuff Some other unlisted stuff. Credits: Danny The guy that made Enhanced Damage BlackTea Chessnut Johnny Guitar The guy that ran Brink(?) Madcombat (Did some factions and SWEPs) Dev (Jake, from HGN) Can't think of anyone else, if I forgot you then please PM me. [url]http://www.sendspace.com/file/yy4ers[/url] NOTE: This is terribly put together, as it was rushed because myself (and Madcombat) had just left another community when we decided to make our own, I rushed this gamemode out in 2 days to keep people happy, but I guess that some people might get some ideas out of it, or an idea on what they want to do for their own gamemode. vidjas: [url]http://www.youtube.com/watch?v=lpmexpiaHyg[/url] [url]http://www.youtube.com/watch?v=7azmRTPkfh8[/url] [url]http://www.youtube.com/watch?v=0dIZS1F3A_0[/url] [url]http://www.youtube.com/watch?v=uoDO8k3AX7I[/url] [url]http://www.youtube.com/watch?v=3P-Cj7HgknA[/url] Workshop stuff for textures and sounds I "made" (ripped/found online): [url]http://steamcommunity.com/sharedfiles/filedetails/?id=231227915[/url] P.S. Sorry for lack of structure in this post, I'd make it look better...but...whatever. P.S.S. If you need any help/have any questions, feel free to PM me or add me on Steam: [url]http://steamcommunity.com/id/cJNOOBOyn20/[/url] EDIT: Fixed a spelling error.
awesome shit
Damn... this is bad.
[QUOTE=soliv;44713532]Damn... this is bad.[/QUOTE] Did you even read the OP? Or...are you retarded?
[QUOTE=Reyjr43;44713577]Did you even read the OP? Or...are you retarded?[/QUOTE] So I can't have an opinion about your unfinished "release"?
[QUOTE=soliv;44713615]So I can't have an opinion about your unfinished "release"?[/QUOTE] You don't have to give me your "opinion" on something I already know, I said directly in the post that it was rushed. It was probably a few hours of work in all, so obviously it's not going to be "decent" it's going to look like what it is, thrown together sloppily and held together by some glue and toothpicks, why do you think I didn't update it?
[QUOTE=Reyjr43;44713650]You don't have to give me your "opinion" on something I already know, I said directly in the post that it was rushed. It was probably a few hours of work in all, so obviously it's not going to be "decent" it's going to look like what it is, thrown together sloppily and held together by some glue and toothpicks, why do you think I didn't update it?[/QUOTE] You could've atleast polish it up a little for release, if it was a few hours of work then another hour for polishing wouldn't hurt... now would it?
[QUOTE=soliv;44713689]You could've atleast polish it up a little for release, if it was a few hours of work then another hour for polishing wouldn't hurt... now would it?[/QUOTE] it's meant to be a dump of the project rather than a release.
[QUOTE=DeveloperConsol;44713727]it's meant to be a dump of the project rather than a release.[/QUOTE] So you're saying this is Garbage? And what is "Factor Transferring"?
[QUOTE=DeveloperConsol;44713727]it's meant to be a dump of the project rather than a release.[/QUOTE] Sorry if I seemed a little abrasive toward you, soliv, it wasn't meant to come off like that. I released it because I didn't want the work that I'd done on it to go to waste, and for the idea and possibility that someone else could possibly use my works as ideas or places to start from. I don't want anyone to use this gamemode in itself, because it's simply a pain in the butt to keep working (for obvious reasons that you and I both know, it's thrown together too quickly to be easy to fix.) the point of the release was for others to find a ground to see how things in my gamemode worked, and they can then improve them, develop upon them, and use the ideas for their own gamemodes. I added the "you can use this blahblah" to the top to let people know that if they decided to use the code inside it, which I wouldn't recommend personally, they can. EDIT: Spelling error, it's meant to be "Faction Transferring"
Well coming around the corner and saying your stuff is bad might've been the wrong approche. The thing is that some of your code should not be used for learning. (I guess I don't have to tell you why.) besides, where did you got that Faction transfer code from?
[QUOTE=soliv;44713878]Well coming around the corner and saying your stuff is bad might've been the wrong approche. The thing is that some of your code should not be used for learning. (I guess I don't have to tell you why.) besides, where did you got that Faction transfer code from?[/QUOTE] Faction transferring is quite simple, all I did was check to see if the faction actually existed by checking if the new faction was that of a faction name, and then set the faction index and the character's faction accordingly. I saw someone else do it, but it only accepted numbers, mine accepts strings, for example, theirs was "/charfaction 1" Mine works as "/charsetfaction Duty" and it will set them to DUTY. [code] nut.command.Register({ adminOnly = true, allowDead = true, syntax = "<string name> [string Faction]", onRun = function(client, arguments) local target = nut.command.FindPlayer(client, arguments[1]) local faction for k, v in pairs(nut.faction.GetAll()) do if (nut.util.StringMatches(arguments[2], v.name)) then faction = v break end end local client = FindMetaTable("Player") if (IsValid(target)) then table.remove(arguments, 1) local newfaction = table.concat(arguments, " ") if (newfaction != faction.name) then print("Must be a faction name.") end if(newfaction == faction.name) then target:SetTeam(faction.index) target.character:SetVar("faction", faction.index) end end end }, "charsetfaction") [/code] (Taken from sh_commands.lua in the NutScript framework that I paired in the "release".) The reason that this code isn't great for learning is obvious, yes, it's messy, it's not a grounds for actually learning GLua, so much as seeing how I did things and improving them. I wouldn't recommend anyone to start with gamemodes in GLua, mainly because of networking (which annoys me to the point of no end, it's much too difficult for me, that's why most of my development is clientside as seen in the actual gamemode, most things are shared.) it's just a place for people who have a clue what they're doing in GLua to find out where they want to start doing things (such as Detectors, and broken legs which heal when using medkits.) Sorry if my last post wasn't explanatory enough as to why I released this, if you have any more questions, feel free to ask.
[QUOTE=soliv;44713878]Well coming around the corner and saying your stuff is bad might've been the wrong approche. The thing is that some of your code should not be used for learning. (I guess I don't have to tell you why.) besides, where did you got that Faction transfer code from?[/QUOTE] shutup people with your shitty and poor attitude towards releases are why nobody ever does this sort of thing anymore.
[QUOTE=Reyjr43;44712869] The guy that ran Brink(?)[/QUOTE] Ice e: rubberbandits helped as well.
[QUOTE=Blazer232;44742480]Ice e: rubberbandits helped as well.[/QUOTE] rubberbandits and ice more or less just C+P'd stuff I was paid 15$ to fix all 20+ lua errors rubberbandits managed to come up with
[QUOTE=Johnny Guitar;44743421]rubberbandits and ice more or less just C+P'd stuff I was paid 15$ to fix all 20+ lua errors rubberbandits managed to come up with[/QUOTE] Ice ran Brink. He barely did any code. It was mostly Rubberbandits.
I'm actually interested in this topic (I KNOW IT'S FROM 2011!). All I want to look at is Rebel's Hunger System.. or any hunger system honestly!
[QUOTE=Jasper Morgue;50461867]I'm actually interested in this topic (I KNOW IT'S FROM 2011!). All I want to look at is Rebel's Hunger System.. or any hunger system honestly![/QUOTE] hunger systems are the most basic shit its really just a timer that loops through all players and lowers their hunger stat then networks the change to them and if they fall into 0% hunger it starts dealing damage to them instead
But looting items and choosing when to eat them isn't as simple?
Link is not working anymore ?
interesting.
Sorry, you need to Log In to post a reply to this thread.