• NutScript - Nutty name, serious framework
    2,778 replies, posted
[QUOTE=Swog;44255638]I'm pretty sure that you set the bodygroup when they put it on, like a left-click or a left-click menu with the "Wear" option.[/QUOTE] As in a clothing item where when you click wear it changes the body group on your current model?
[QUOTE=Blazer232;44255685]As in a clothing item where when you click wear it changes the body group on your current model?[/QUOTE] Yes, exactly what I'm describing. I don't know what hook is used for clicking wear, so you might wanna consult a wiki or the code for information.
Yes well I have no idea how to code. That's the thing.
[QUOTE=Blazer232;44257943]Yes well I have no idea how to code. That's the thing.[/QUOTE] [lua] ITEM.name = "Your Clothing Thing" ITEM.desc = "A cloth that you wear." ITEM.model = "model/gman.mdl" ITEM.bodygroup = { ["bodygroup_name"] = 1 } [/lua] Put in items/clothing
By Bodygroup_name do you mean things like head, torso, etc?
It's the number for the body group, my bad.
This sounds like a very dumb question, but I really haven't played any other scripts but TS2, Necroscript and similar, so I honestly don't know. What are some advantages that Nutscript has over other scripts?
[QUOTE=itak365;44260634]This sounds like a very dumb question, but I really haven't played any other scripts but TS2, Necroscript and similar, so I honestly don't know. What are some advantages that Nutscript has over other scripts?[/QUOTE] [url]http://chessnut.info/wiki/Why_Choose_NutScript[/url]
Bah! this has been driving me up a wall! I've been attempting to add custom items and they simply dont appear. what am I doing wrong? Directory for clothing : gamemodes\Sample\gamemode\schema\clothing clothing file: sh_WinterCamo.txt contents: ITEM.name = "Winter Combat Uniform" ITEM.uniqueID = "C_WinterCombatUniform" ITEM.desc = "Not the best camo, but great for stopping rounds. ITEM.model = Model ("models/nikout/fallout/wintercombatarmormalepm.mdl")
[QUOTE=makermod1;44260681]Bah! this has been driving me up a wall! I've been attempting to add custom items and they simply dont appear. what am I doing wrong? Directory for clothing : gamemodes\Sample\gamemode\schema\clothing clothing file: sh_WinterCamo.txt contents: ITEM.name = "Winter Combat Uniform" ITEM.uniqueID = "C_WinterCombatUniform" ITEM.desc = "Not the best camo, but great for stopping rounds. ITEM.model = Model ("models/nikout/fallout/wintercombatarmormalepm.mdl")[/QUOTE] I hope this is b8 It's supposed to be sh_WinterCamo.lua not .txt
The T-pose for citizens holding pistols still needs to be fixed~ Also, how can we persist entities from the "Half-Life 2" section in the Q menu. /setpersist doesn't work on those entities and neither does using the persist in the C menu.
[QUOTE=Datzy;44260867]I hope this is b8 It's supposed to be sh_WinterCamo.lua not .txt[/QUOTE] If this doesn't work also put it in items inb4 clothing (schema/items/clothing) gl gl
[QUOTE=makermod1;44260681]Bah! this has been driving me up a wall! I've been attempting to add custom items and they simply dont appear. what am I doing wrong? Directory for clothing : gamemodes\Sample\gamemode\schema\clothing clothing file: sh_WinterCamo.txt contents: ITEM.name = "Winter Combat Uniform" ITEM.uniqueID = "C_WinterCombatUniform" ITEM.desc = "Not the best camo, but great for stopping rounds. ITEM.model = Model ("models/nikout/fallout/wintercombatarmormalepm.mdl")[/QUOTE] it has to be .lua also, you don't need to manually assign uniqueID's
we should have books for ns
I'm not fluent with Lua or GLua for that matter, so I'm a bit stumped on how I could do this. How should I go about reading from a tuple or something to get item combinations and their output? For a scrap plugin I want to combine [B]a [/B]and [B]b [/B]and [B]c [/B]together to make [B]d[/B], how can I: [b]1:[/b] Make it read from a list to show possible combinations from the category items [b]2:[/b] Show a derma menu to let you select items [b]3:[/b] Parse the selections, combine them, and give you an output
[QUOTE=Chessnut;44259612]It's the number for the body group, my bad.[/QUOTE] Ah, thank you. [QUOTE=itak365;44260634]This sounds like a very dumb question, but I really haven't played any other scripts but TS2, Necroscript and similar, so I honestly don't know. What are some advantages that Nutscript has over other scripts?[/QUOTE] I would say that it's incredibly easy to add items, even for a person like me who has zero coding experience. It's also easily configurable and there are a plethora of schemas already available to choose from.
How to add new models to the factions with different skins? (try№3)
[QUOTE=imacc2009;44215355]How the hell has that doctor got a diploma. Clockwork isn't a nut allergy cure.[/QUOTE] Wait did you wall think I meant that seriously? Theres even an annotation in the video saying "The actor in this video is not a real doctor. Clockwork does not cure nut" :suicide:
[QUOTE=GaMeRaM;44265390]How to add new models to the factions with different skins? (try№3)[/QUOTE] Try setting another like like MODEL.skin = "1", I don't know if that's supported yet but I'd do a similar thing with items. [QUOTE=imacc2009;44266066]Wait did you wall think I meant that seriously? Theres even an annotation in the video saying "The actor in this video is not a real doctor. Clockwork does not cure nut" :suicide:[/QUOTE] Yes I wall think you meant that...
[QUOTE=GTbrawlers;44266422]Yes I wall think you meant that...[/QUOTE] :suicide: :suicide:
[QUOTE=GaMeRaM;44265390]How to add new models to the factions with different skins? (try№3)[/QUOTE] What do you mean?
[QUOTE=Blazer232;44267636]What do you mean?[/QUOTE] Take the soda can for instance, it has 3 colours corresponding to 3 skins. When selecting them from the spawnlist however they are all labeled as the same model but with skin 1, skin 2 or skin 3 in brackets after them. Examples taken from the HL2RP schema for soda cans: [lua] ITEM.name = "Special Breen's Water" ITEM.desc = "A special edition of Breen's Water, noted by the red can." ITEM.price = 20 ITEM.skin = 1 ITEM.model = Model("models/props_junk/popcan01a.mdl") [/lua][lua]ITEM.name = "Sparkling Breen's Water" ITEM.desc = "A more fizzy version of Breen's water." ITEM.price = 15 ITEM.skin = 2 ITEM.model = Model("models/props_junk/popcan01a.mdl") [/lua]
[QUOTE=Johnny Guitar;44263100]it has to be .lua also, you don't need to manually assign uniqueID's[/QUOTE] Thanks guys, I felt so stupid. LOL. I was trying to figure out why the examples didnt load, so I guess that's why. Couple more questions I cant seem to find the answer to: 1. How do you join a faction or define multiple factions (such as citizen and metropolice) as available from character creation 2. How on earth do prevent some items from being displayed in the business window, and how can I recolor various aspects?
Could you change the idle animation for playermodels to actually idle instead of holding your fists up? Or someone maybe make a plugin. [editline]17th March 2014[/editline] [QUOTE=makermod1;44268434]Thanks guys, I felt so stupid. LOL. I was trying to figure out why the examples didnt load, so I guess that's why. Couple more questions I cant seem to find the answer to: 1. How do you join a faction or define multiple factions (such as citizen and metropolice) as available from character creation 2. How on earth do prevent some items from being displayed in the business window, and how can I recolor various aspects?[/QUOTE] 1. /plywhitelist [name] [faction]
[QUOTE=makermod1;44268434]Thanks guys, I felt so stupid. LOL. I was trying to figure out why the examples didnt load, so I guess that's why. Couple more questions I cant seem to find the answer to: 1. How do you join a faction or define multiple factions (such as citizen and metropolice) as available from character creation 2. How on earth do prevent some items from being displayed in the business window, and how can I recolor various aspects?[/QUOTE] For the first one, you're going to have to go into your schema's faction files. There should be an option that says something along the lines of the faction being available by default, and you simply set it to true or 1 or whatever. The second one, I'm not sure about the business menu, all I know how to do is disable it completely, and I believe menu button colors can be changed in the sh_config file. If not, I think you can find options for the F1 menu buttons in "nutscriptfolder/gamemode/derma."
Thanks again, hit the spot with that one. I can't understand what stupidity I am doing. Maybe I should be editing the base instead? So close to being able to move on to other things in the gamemode. [CODE]Redownloading all lightmaps ************************** Lua Error: [ERROR] gamemodes/sample/gamemode/schema/items/clothing/sh_wintercamo.lua:3: unfinished string near '"Not the best camo, but great for stopping rounds.' 1. unknown - gamemodes/sample/gamemode/schema/items/clothing/sh_wintercamo.lua:0 [/CODE] I thought it would run all fine and dandy after adding the missing ", but same message. [CODE]ITEM.name = "Winter Combat Uniform" ITEM.desc = "Not the best camo, but great for stopping rounds." ITEM.model = Model ("models/nikout/fallout/wintercombatarmormalepm.mdl") ITEM.worth = 0[/CODE] **EDIT** Stupid me. I was editing the wrong file. Now I have another problem, when I buy the item nothing shows up in my inventory, nor do I get the you have bought something message. I suck :| And how do you change classes?
[QUOTE=Chessnut;44257978][lua] ITEM.name = "Your Clothing Thing" ITEM.desc = "A cloth that you wear." ITEM.model = "model/gman.mdl" ITEM.bodygroup = { ["bodygroup_name"] = 1 } [/lua] Put in items/clothing[/QUOTE] [url=http://www.youtube.com/watch?v=5e9I8cNnXeY]I think something's wrong...[/url]
[QUOTE=Blazer232;44269538][url=http://www.youtube.com/watch?v=5e9I8cNnXeY]I think something's wrong...[/url][/QUOTE] If you make something "clothing" it replaces your current model with that thing. If you make it a "part" you will wear it on your current model.
And how do I go about making it a part?
[img]http://i.imgur.com/NNF37qw.png[/img] Make a part folder in items if it's not there already and put the .lua file for the item in it. :D
Sorry, you need to Log In to post a reply to this thread.