[QUOTE=Chessnut;42959213]Did you set yourself an the owner?[/QUOTE]
Yeah, sorry about that.
[editline]23rd November 2013[/editline]
What I can't seem to figure out is clothing.
This:
[CODE]ITEM.name = "Kleiner"
ITEM.desc = "Makes you look like a scientist!"
ITEM.uniqueID = "example_clothing"
ITEM.outfitmodel = Model("models/Kleiner.mdl")[/CODE]
Does not work.
[QUOTE=pilot;42959237]Yeah, sorry about that.
[editline]23rd November 2013[/editline]
What I can't seem to figure out is clothing.
This:
[CODE]ITEM.name = "Kleiner"
ITEM.desc = "Makes you look like a scientist!"
ITEM.uniqueID = "example_clothing"
ITEM.outfitmodel = Model("models/Kleiner.mdl")[/CODE]
Does not work.[/QUOTE]
I'm also curious as to how this would work because if using clothing items changes your entire model then It's not exactly clothing and that would be pretty annoying if I go from being a HL2 citizen to an old bald man in a white labcoat.
Maybe someone who knows how to model could help and possible make us clothing?
[QUOTE=BigBadWilly;42960327]Maybe someone who knows how to model could help and possible make us clothing?[/QUOTE]
A possibility could be that Chessnut could shrink the bones of the model besides the head and bonemerge them like Tiramisu does.
[QUOTE=GTbrawlers;42960227]I'm also curious as to how this would work because if using clothing items changes your entire model then It's not exactly clothing and that would be pretty annoying if I go from being a HL2 citizen to an old bald man in a white labcoat.[/QUOTE]
There's a replacement system for things such as changing citizen to rebel models.
Also, pilot, ITEM.outfit[b]M[/b]odel is deprecated, change it to ITEM.model and update your framework.
[QUOTE=Chessnut;42960603]There's a replacement system for things such as changing citizen to rebel models.
Also, pilot, ITEM.outfit[b]M[/b]odel is deprecated, change it to ITEM.model and update your framework.[/QUOTE]
Alright, also I think it would be pretty dandy if we could implement the Tiramisu 2 clothing system. That was amazing how it would separate head, body, gloves.
[QUOTE=pilot;42961010]Alright, also I think it would be pretty dandy if we could implement the Tiramisu 2 clothing system. That was amazing how it would separate head, body, gloves.[/QUOTE]
That's pretty good although Johnny Guitar made a good clothing plugin for his NS: HL2RP where you can get hats etc
[QUOTE=pilot;42961010]Alright, also I think it would be pretty dandy if we could implement the Tiramisu 2 clothing system. That was amazing how it would separate head, body, gloves.[/QUOTE]
Yeah but it really fucks up your model and your legs spazz out all the time
[QUOTE=DeathByKittens;42961657]Yeah but it really fucks up your model and your legs spazz out all the time[/QUOTE]
The only thing I'm really worried about is when the model ends up making your neck really really small. Just a matter of having good dynamic models I guess.
[QUOTE=pilot;42961680]The only thing I'm really worried about is when the model ends up making your neck really really small. Just a matter of having good dynamic models I guess.[/QUOTE]
Just remove the neck bone from the list of bones being shrunk, fixed it for me.
It's so strange, the whole clothing thing isn't working. Maybe, I'm being really stupid right now. Can someone send me an example script?
[QUOTE=pilot;42964044]It's so strange, the whole clothing thing isn't working. Maybe, I'm being really stupid right now. Can someone send me an example script?[/QUOTE]
Make a clothing folder within the item folder of your schema.
[code]
ITEM.name = "Police"
ITEM.desc = "Da police"
ITEM.model = Model("models/police.mdl")
[/code]
[QUOTE=C0MMUNIZT;42964059]Make a clothing folder within the item folder of your schema.
[code]
ITEM.name = "Police"
ITEM.desc = "Da police"
ITEM.model = Model("models/police.mdl")
[/code][/QUOTE]
*Snaps fingers* Never added a clothing folder in my items folder. Do I need to do the same with ammo and weapons?
[QUOTE=pilot;42964115]*Snaps fingers* Never added a clothing folder in my items folder. Do I need to do the same with ammo and weapons?[/QUOTE]
I assume so, I think there are examples in Nutscript itself.
Is it possible to add onto a code like clothing, weapon, or ammo without having to change the BASE?
Like if I wanted to do something like:
[CODE]ITEM.name = "Police"
ITEM.desc = "Da police"
ITEM.model = Model("models/police.mdl")
--Then add stuff here[/CODE]
[QUOTE=pilot;42966440]Is it possible to add onto a code like clothing, weapon, or ammo without having to change the BASE?
Like if I wanted to do something like:
[CODE]ITEM.name = "Police"
ITEM.desc = "Da police"
ITEM.model = Model("models/police.mdl")
--Then add stuff here[/CODE][/QUOTE]
I assume that's possible since in one of my previous posts I was asking whether or not I could change an items material when it's dropped and you can.
When I do something like
[CODE]ITEM.name = "Police"
ITEM.desc = "Da police"
ITEM.model = Model("models/police.mdl")
function Hi()
print( "Hi" )
end[/CODE]
It would ignore the function, and if I do:
[CODE]ITEM.name = "Police"
ITEM.desc = "Da police"
ITEM.model = Model("models/police.mdl")
ITEM.functions = {}
ITEM.functions.Wear = {
function Hi()
print( "Hi" )
end
}
[/CODE]
It would work, but it then ignores the whole base clothing.
[url]https://github.com/Chessnut/NutScript/commit/f6b2f619b43f5d45403043aa87f8c7e0705a484c[/url]
[editline]24th November 2013[/editline]
For regular items, you can use ITEM:Hook(action. hookID, callback)
[QUOTE=Chessnut;42967484][url]https://github.com/Chessnut/NutScript/commit/f6b2f619b43f5d45403043aa87f8c7e0705a484c[/url]
[editline]24th November 2013[/editline]
For regular items, you can use ITEM:Hook(action. hookID, callback)[/QUOTE]
Got it!
And aside from all this, is it possible to make the models compatible with different groups?
Is there an option for different male and female models on the same item?
ITEM.femaleModel = "model/mossman.mdl"
I don't believe female models work in items at least. Also, with replacements.
Update your framework?
[QUOTE=Chessnut;42972424]Update your framework?[/QUOTE]
Oh man, these frameworks get updated fast.
[editline]25th November 2013[/editline]
Still doesn't work, but I don't know why.
Are you using a female model?
[QUOTE=Chessnut;42972882]Are you using a female model?[/QUOTE]
Yeah, it works with my male character and is correct in group replacement, but once I use my female character I can "Wear" the clothing, but the model doesn't change.
What is the model name?
[CODE]ITEM.femaleModel = "models/Humans/Group03/Female_02.mdl"[/CODE]
And then I tried:
[CODE]ITEM.femaleModel = "model/mossman.mdl"[/CODE]
And I even did:
[CODE]ITEM.femaleModel = Model("model/mossman.mdl")[/CODE]
I meant your character's model name.
[QUOTE=Chessnut;42973140]I meant your character's model name.[/QUOTE]
models/Humans/Group01/Female_02.mdl
Sorry, you need to Log In to post a reply to this thread.