• NutScript - Nutty name, serious framework
    2,778 replies, posted
rp_city8 but it even happened in rp_city45_2013 It's only the combineish doors.
Look for any settings about USE protection over world entities
[QUOTE=Chessnut;43027381]Why can't it be used with ulx?[/QUOTE] Have you tested it? Might just be me but I get an error; "Unauthed Player" or something similar on a clean server with just ulx and nutscript and obviously the sample schema.
[QUOTE=pilot;43027686]rp_city8 but it even happened in rp_city45_2013 It's only the combineish doors.[/QUOTE] That's because some doors have the 'No Open on +use' flag, you have to use entity:Fire("Open") whenever the player uses the door entity.
[QUOTE=Chessnut;43027836]That's because some doors have the 'No Open on +use' flag, you have to use entity:Fire("Open") whenever the player uses the door entity.[/QUOTE] So could I do something like.. If door has that 'No Open on +use' then make it so that only that /this/ faction can open it. [editline]30th November 2013[/editline] And is there any pointers you guys have for me to do that?
Is there any third person plugin already or would I need to create my own?
[QUOTE=Eskay;43028772]Is there any third person plugin already or would I need to create my own?[/QUOTE] Create your own, or look in Chessnuts Github and see if he made one.
[QUOTE=Eskay;43028772]Is there any third person plugin already or would I need to create my own?[/QUOTE] There currently isn't one but it wouldn't be hard to make one. Only problem with it is the implications on RP; Yes its nice to see yourself but with any third person ability, it can give you corner sight. But then again that's why these things are optional :)
So I had Nutscript on SRCDS for half a day (Yeah I know shame on me for using SRCDS for even half a day) But I can't seem to port it now to a server provider. I moved everything from the data folder, and the schema + nutscript to the gamemode folder but nada. The server won't work at all on the original map, only on other maps like gm_flatgrass, and the data isn't being implemented. Any reason why? Any fix? [editline]1st December 2013[/editline] Fixed it, just had to bring sv.db from SRCDS to the new server.
Chessnut, anything on ulx?
I tried adding: [CODE]function PLUGIN:Use(entity) entity:Fire("Open") end[/CODE] In the hooks file for the doors plugin, but it didn't seem to do anything really. Is there a way to specify if the door can't be opened?
Plugin and schema hooks are only GMod hooks plus some other NutScript ones. Look here for the gmod hooks: [url]http://wiki.garrysmod.com/page/Category:GM_Hooks[/url] For the NutScript one, just search for nut.schema.Call calls.
How would I be able to call if the door has that 'No open on +use' Couldn't find a hook that would let me do a function if the door has that.
PlayerUseDoor(client, door) and [url]https://developer.valvesoftware.com/wiki/Prop_door_rotating#Flags[/url]
I'm already doing that PlayerUseDoor(client, door): [CODE]function PLUGIN:PlayerUseDoor(client, door) if ( client:HasItem("mid") ) then door:Fire("Open") end end[/CODE] But on that link you sent me, I was wondering if it would be able to remove the door flags as it says it has the '32768 : Ignore player +USE' flag [editline]3rd December 2013[/editline] And then I tried: [CODE]function PLUGIN:PlayerUseDoor(client, door) if ( client:HasItem("mid") ) then door:Fire("Open") door:RemoveEFlags( 32768 ) end end[/CODE] No such luck either.
Here is an excerpt from my HL2 RP. [lua] function SCHEMA:PlayerUseDoor(client, entity) if (client:Team() == FACTION_OW or client:Team() == FACTION_CP) then if (!entity:HasSpawnFlags(256) and !entity:HasSpawnFlags(1024)) then entity:Fire("open", "", 0) end end end [/lua]
snip
[QUOTE=Chessnut;43052818]Here is an excerpt from my HL2 RP. [lua] function SCHEMA:PlayerUseDoor(client, entity) if (client:Team() == FACTION_OW or client:Team() == FACTION_CP) then if (!entity:HasSpawnFlags(256) and !entity:HasSpawnFlags(1024)) then entity:Fire("open", "", 0) end end end [/lua][/QUOTE] I'm assuming because it has 'SCHEMA:' it's implemented in sv_hooks of the schema folder?
[QUOTE=Garrison;42960380]A possibility could be that Chessnut could shrink the bones of the model besides the head and bonemerge them like Tiramisu does.[/QUOTE] I've been considering porting some of Tiramisu's functionality through plugins to this, since it seems this is the dominant open source RP framework. (I'm one of Tira's authors)
[QUOTE=Jawalt;43059304]I've been considering porting some of Tiramisu's functionality through plugins to this, since it seems this is the dominant open source RP framework. (I'm one of Tira's authors)[/QUOTE] Port tiramisu's clothing system and you will be the best man to ever have lived, almost.
[QUOTE=Jawalt;43059304]I've been considering porting some of Tiramisu's functionality through plugins to this, since it seems this is the dominant open source RP framework. (I'm one of Tira's authors)[/QUOTE] I thought Tiramisu was abandoned?
[QUOTE=Jawalt;43059304]I've been considering porting some of Tiramisu's functionality through plugins to this, since it seems this is the dominant open source RP framework. (I'm one of Tira's authors)[/QUOTE] You should join in on NutScript's development, we need to get this shit rollin'
[QUOTE=Jawalt;43059304]I've been considering porting some of Tiramisu's functionality through plugins to this, since it seems this is the dominant open source RP framework. (I'm one of Tira's authors)[/QUOTE] Oh please!
[QUOTE=Soret;43060686]You should join in on NutScript's development, we need to get this shit rollin'[/QUOTE] anyone can make pull requests on github
There are already like 2 non official clothing systems bobbing around but the more the merrier! I think the amount of publicity this is getting is good although I'm yet to see any servers running it. I think I'll be happy to flagship the HL2RP once its at a stable state / released. 32 slot server ;)
[QUOTE=GTbrawlers;43060858]There are already like 2 non official clothing systems bobbing around but the more the merrier! I think the amount of publicity this is getting is good although I'm yet to see any servers running it. I think I'll be happy to flagship the HL2RP once its at a stable state / released. 32 slot server ;)[/QUOTE] there's 3 now since I made one last night
[QUOTE=jaooe;43059951]I thought Tiramisu was abandoned?[/QUOTE] It is, that's why I would port stuff to this, :P
[QUOTE=Jawalt;43063010]It is, that's why I would port stuff to this, :P[/QUOTE] It would be a good contribution instead of letting Tiramisu die within the updates of Garrysmod.
[QUOTE=Johnny Guitar;43060873]there's 3 now since I made one last night[/QUOTE] I thought you've had one around for awhile?
[QUOTE=GTbrawlers;43070592]I thought you've had one around for awhile?[/QUOTE] made a new one that if you take damage, it lowers the condition of the armour you are wearing.
Sorry, you need to Log In to post a reply to this thread.