Anyone know the equivalent to CAKE. for Nutscript?
Would you consider NutScript easier to install and flow with than clockwork?
[QUOTE=Phreaked;44001728]Would you consider NutScript easier to install and flow with than clockwork?[/QUOTE]
Yes, I would.
[QUOTE=pilot;44001696]Anyone know the equivalent to CAKE. for Nutscript?[/QUOTE]
What's CAKE?
[QUOTE=ZeMysticalTac;44001693]Aswell as don't listen to the dude who told them to save them wherever he did.
You save them in hl2rp(or dissolution if you're using it)/gamemode/schema/items/ammo
for the ammo
and hl2rp(or dissolution if you're using it)/gamemode/schema/items/weapons
Will edit with the fix for the binachi. Give me a few to load up gmod!
Everything was fine with the bianchi or whatever, oyu just saved it wrong![/QUOTE]
They still won't appear brah, help?
EDIT:
Okay, ammos appear, they won't load the guns properly but I'll figure that by myself.
Weps are still not worken, could you add me on steam? (afik068)
Thx!
EDIT 2:
Ammo works fine, weps still won't appear, for those who wonder I fixed it using ammo types in the following list, should be a-okay like that.
AR2 - Ammunition of the AR2/Pulse Rifle
AlyxGun - (name in-game "5.7mm Ammo")
Pistol - Ammunition of the 9MM Pistol
SMG1 - Ammunition of the SMG/MP7
357 - Ammunition of the .357 Magnum
XBowBolt - Ammunition of the Crossbow
Buckshot - Ammunition of the Shotgun
RPG_Round - Ammunition of the RPG/Rocket Launcher
SMG1_Grenade - Ammunition for the SMG/MP7 grenade launcher (secondary fire)
SniperRound
SniperPenetratedRound - (name in-game ".45 Ammo")
Grenade - Note you must be given the grenade weapon (weapon_frag) before you can throw grenades.
Thumper - Ammunition cannot exceed 2 (name in-game "Explosive C4 Ammo")
Gravity - (name in-game "4.6MM Ammo")
Battery - (name in-game "9MM Ammo")
GaussEnergy
CombineCannon - (name in-game ".50 Ammo")
AirboatGun - (name in-game "5.56MM Ammo")
StriderMinigun - (name in-game "7.62MM Ammo")
HelicopterGun
AR2AltFire - Ammunition of the AR2/Pulse Rifle 'combine ball' (secondary fire)
slam - Like Grenade, but for the Selectable Lightweight Attack Munition (S.L.A.M)
Found it online.
To the above post, is the weapon you're having issues with an actual SWEP or is it just a model? Try going into singleplayer (sandbox) and spawning yourself the weapon, open up console, and see what it spawns, for example, it will show something like "giving YOURNAME an fas2_weapon" (I don't know if that's an actual thing?) or weapon_ak47 (for the CS:S weps)
It functions as a weapon if I regularly spawn it. I'm trying a fix now, I might have the weapon base wrong.
Edit:
After testing everything works but the binachi, might be an Addon bug? Because when I use it on Q menu and load SMG bullets as an item it works.
Any idea?
I'm having a bit of an issue with NutScript myself, when I make an item I want to use as an item that can be "worn" it seems to instead eat the item, not sure how I'd fix it, is there an ITEM.Reusable or anything like that?
[QUOTE=Reyjr43;44007005]I'm having a bit of an issue with NutScript myself, when I make an item I want to use as an item that can be "worn" it seems to instead eat the item, not sure how I'd fix it, is there an ITEM.Reusable or anything like that?[/QUOTE]
LOL
Use the clothing base, path:
derp/schema/items/clothing/sh_derp.lua
[QUOTE=afik068;44007049]LOL
Use the clothing base, path:
derp/schema/items/clothing/sh_derp.lua[/QUOTE]
Nah, that's not what I'm after, I want the item to not be a piece of clothing because that limits you from using clothing. It's not meant to be a piece of clothing anyway, so if I did it that way then it'd screw over people that actually have a reason to use clothing.
So you want it like an attachment? (Hat, glove, idk)
If that's the case use this path:
derp/schema/items/part/sh_derp.lua
This would be the proper code for it:
[lua]
ITEM.name = "Test Hoverball"
ITEM.partdata = { -- You can use PAC3 to setup the part.
model = "models/dav0r/hoverball.mdl",
bone = "ValveBiped.Bip01_Spine1",
position = Vector( 20, -7.351, 0 ),
angle = Angle( 0, 0, 0 ),
scale = Vector( 1, 1, 1 ),
size = 1,
--material = "",
--skin = "",
--bodygroup = ""
}
ITEM.model = Model("models/dav0r/hoverball.mdl")
ITEM.desc = "A Part."
[/lua]
[QUOTE=afik068;44007121]So you want it like an attachment? (Hat, glove, idk)
If that's the case use this path:
derp/schema/items/part/sh_derp.lua
This would be the proper code for it:
[lua]
ITEM.name = "Test Hoverball"
ITEM.partdata = { -- You can use PAC3 to setup the part.
model = "models/dav0r/hoverball.mdl",
bone = "ValveBiped.Bip01_Spine1",
position = Vector( 20, -7.351, 0 ),
angle = Angle( 0, 0, 0 ),
scale = Vector( 1, 1, 1 ),
size = 1,
--material = "",
--skin = "",
--bodygroup = ""
}
ITEM.model = Model("models/dav0r/hoverball.mdl")
ITEM.desc = "A Part."
[/lua][/QUOTE]
I meant in the fact that I want the item to be "worn" but not "worn" at the same time, basically, I want it to be an item you can click on in your inventory and then click "Wear" and have it not get eaten, I'm using it to find entities in a certain radius and then play a sound accordingly, I have the item "working" (I hear the beep when it's in the radius) but it plays 1 time due to the item being eaten.
Understand? Sorry if I worded it awfully.
[QUOTE=Reyjr43;44007157]I meant in the fact that I want the item to be "worn" but not "worn" at the same time, basically, I want it to be an item you can click on in your inventory and then click "Wear" and have it not get eaten, I'm using it to find entities in a certain radius and then play a sound accordingly, I have the item "working" (I hear the beep when it's in the radius) but it plays 1 time due to the item being eaten.
Understand? Sorry if I worded it awfully.[/QUOTE]
Now I do understand, lol
Um, no idea, but I'll write down something if I figure out something.
EDIT:
Try extracting something from the radio plugin, I think it works kind of the same way.
[QUOTE=erkor;43999916]Is there a NS Plugin equivalent of Spy's immersive first person addon? I saw it on a Nutscript server the other day, and it behaved -real- nice.[/QUOTE]
Im porting his to NS right now. If he gives me permission ill upload it.
Can anyone confirm if the crafting plugin works or am I just not getting it?
I'm currently trying to code around on the default data layout. Is there a way to make it paragraphed, or is it paragraphed by default?
[CODE]nut.config.defaultData = "CiD: Name: Status: L points: Loyalist Actions: V points:"[/CODE]
[QUOTE=C0MMUNIZT;44009171]Can anyone confirm if the crafting plugin works or am I just not getting it?[/QUOTE]
On sh_plugins for the crafting plugin the first seven lines are by default:
[lua]
local PLUGIN = PLUGIN
PLUGIN.name = "Crafting"
PLUGIN.author = "Black Tea"
PLUGIN.desc = "Allows you craft some items."
PLUGIN.menuEnabled = false -- menu can be toggled off.
PLUGIN.reqireBlueprint = true
[/lua]
Make sure that the following line is true and not false, It's false by default.
[lua]
PLUGIN.menuEnabled = true -- menu can be toggled off.
[/lua]
Anyone know if there's a way to set a characters faction without having to delete it? I've hacked my own method up, but it doesn't actually set their faction so if you change character and change back it will have the color of the faction you were on when you got whitelisted, like this:
[video=youtube;51coxopCfDQ]http://www.youtube.com/watch?v=51coxopCfDQ&feature=youtu.be[/video]
[QUOTE=Reyjr43;44009359]Anyone know if there's a way to set a characters faction without having to delete it? I've hacked my own method up, but it doesn't actually set their faction so if you change character and change back it will have the color of the faction you were on when you got whitelisted, like this:
[video=youtube;51coxopCfDQ]http://www.youtube.com/watch?v=51coxopCfDQ&feature=youtu.be[/video][/QUOTE]
There's a plugin for that.
Hi!
I've looked around, but the search function seems counter-intuitived to me and I keep not finding the infos I search for.
In any case, is there any clear documentation on how to add weapons or items?
I've tried playing, editing and using Dissolution as a reference for trying to figure out things a bit, without any success so far.
I created a
For reference I'm using FAS 2.0 SWEPs ([url]http://steamcommunity.com/sharedfiles/filedetails/?id=180507408[/url]) and trying to include the MP5.
What I did;
create "sh_fas2_mp5a5.lua" in "Dissolution/gamemode/schema/items/weapons/"
Content:
[lua]ITEM.name = "HK MP5a5"
ITEM.class = "fas2_mp5a5"
ITEM.type = "rifle"
ITEM.model = Model("models/weapons/w_smg_mp5.mdl")
ITEM.desc = "The MP5 is one of the most widely used submachine guns in the world, having been adopted by 40 nations and numerous military, law enforcement, intelligence, and security organizations."
ITEM.weight = 3
ITEM.price = 0[/lua]
However I can't even see the item to buy it in the "F1/Business" menu. No errors are given in the DS Window. Not sure what I did wrong, like I say I found no clear documentations on this subject.
I would also liked to point out that using the plug-in method didn't bring anymore success to me, but I had an even harder time figuring it out.
Hope anyone can help me!
[QUOTE=ElectroEsper;44009428]Hi!
I've looked around, but the search function seems counter-intuitived to me and I keep not finding the infos I search for.
In any case, is there any clear documentation on how to add weapons or items?
I've tried playing, editing and using Dissolution as a reference for trying to figure out things a bit, without any success so far.
I created a
For reference I'm using FAS 2.0 SWEPs ([url]http://steamcommunity.com/sharedfiles/filedetails/?id=180507408[/url]) and trying to include the MP5.
What I did;
create "sh_fas2_mp5a5.lua" in "Dissolution/gamemode/schema/items/weapons/"
Content:
[lua]ITEM.name = "HK MP5a5"
ITEM.class = "fas2_mp5a5"
ITEM.type = "rifle"
ITEM.model = Model("models/weapons/w_smg_mp5.mdl")
ITEM.desc = "The MP5 is one of the most widely used submachine guns in the world, having been adopted by 40 nations and numerous military, law enforcement, intelligence, and security organizations."
ITEM.weight = 3
ITEM.price = 0[/lua]
However I can't even see the item to buy it in the "F1/Business" menu. No errors are given in the DS Window. Not sure what I did wrong, like I say I found no clear documentations on this subject.
I would also liked to point out that using the plug-in method didn't bring anymore success to me, but I had an even harder time figuring it out.
Hope anyone can help me![/QUOTE]
Try changing "Weapons" to "Weapon" in the path, that's how I fixed it.
Also, might want to change the description to something more physical (The looks of it), if you'd like :D
[QUOTE=afik068;44009441]Try changing "Weapons" to "Weapon".
Also, might want to change the description to something more physical (The looks of it), if you'd like :D[/QUOTE]
Wow, thank you! It works flawlessly now. I feel quite, inattentive to not have saw that little mistakes.
Good suggestion for the description hehehe.
[QUOTE=ElectroEsper;44009541]Wow, thank you! It works flawlessly now. I feel quite, inattentive to not have saw that little mistakes.
Good suggestion for the description hehehe.[/QUOTE]
Always happy to help, I've been fucking with these files for 3 hours today and yesterday trying to figure them out.
[QUOTE=erkor;44009304]I'm currently trying to code around on the default data layout. Is there a way to make it paragraphed, or is it paragraphed by default?
[CODE]nut.config.defaultData = "CiD: Name: Status: L points: Loyalist Actions: V points:"[/CODE][/QUOTE] Bumping this up in case someone can help.
Also, I'm very obnoxious.
[QUOTE=afik068;44009305]On sh_plugins for the crafting plugin the first seven lines are by default:
[lua]
local PLUGIN = PLUGIN
PLUGIN.name = "Crafting"
PLUGIN.author = "Black Tea"
PLUGIN.desc = "Allows you craft some items."
PLUGIN.menuEnabled = false -- menu can be toggled off.
PLUGIN.reqireBlueprint = true
[/lua]
Make sure that the following line is true and not false, It's false by default.
[lua]
PLUGIN.menuEnabled = true -- menu can be toggled off.
[/lua][/QUOTE]
I changed that but none of the crafting options show up in the crafting menu.
[QUOTE=erkor;44009420]There's a plugin for that.[/QUOTE]
Thanks, it's not exactly what I wanted though, so I just ended up finishing my own little player transfer script, instead of having to type the number of the Team you just have to type the Team's name.
-snip- wrong thread
[QUOTE=erkor;44010972]Is there a way to change the name of a scanner to "Dispatch" in the chat via coding?[/QUOTE]
Are you talking about HL2 RP?
[editline]22nd February 2014[/editline]
[media]http://www.youtube.com/watch?v=fK-BjmWgfjw[/media]
[QUOTE=Chessnut;44011295]Advertisement[/QUOTE]
I have never seen a script that will liberate me of oppressive DRM and costs while ridding the smell of doodoo.
Good job!
[QUOTE=Chessnut;44011295]Are you talking about HL2 RP?
[editline]22nd February 2014[/editline]
[media]http://www.youtube.com/watch?v=fK-BjmWgfjw[/media][/QUOTE]
I think he wants it just like in kuro's script, whenever he talks it would show:
**DISPATH**: derp
instead of
CP-SCN.12345: herp
When chatting in IC chat, whilist on OOC chat it'll show the CP-SCN.12345
Sorry, you need to Log In to post a reply to this thread.