Hi, just a quick question before I jump into all of this;
Do you have to have the "Weapon" in your gamemodes "weapons" folder in order to use it as a weapon in classes? (Trying to use FAS2)
Could you disable players ability to switch classes, make it to where only an admin can transfer you to certain classes?
Thanks for the answers, not looking for people to do the programming, just answers.
Fas2 is an addon.
You'll want to place it in the addons folder.
When it comes to "preventing players switching weapon classes", well, kinda confused by that.
I'm assuming you're running darkrp and setting up classes.
That's a darkrp config thing.
Not a filestructure thing.
If you mean you're getting creative and stripping out the fas2 weapons from the fas2 addon and putting it directly into your gamemode folder, then yes, weapons need to go in entities\weapons\ or they won't work.
Don't forget you also need the fas2 entities as some of them may use entity projectiles instead of bullets. Those go in entities\entities.
And the fas2 effects. Those go in entities\effects.
And you'll probably need the stuff in the fas2 lua\autorun folder as that's generally where the setup for ammo types, sounds and various other stuff usually goes.
And the models will need to be in gamemode\content\models\ or you'll get floating entities that you can't interactive with due to the server missing the models.
Does this answer your question?
If not, please be a bit more specific.
We are not mind readers.
@ Pyro-Fire
Sorry about that, I wasn't specific enough. I was in a hurry when I made this post.
Base Gamemode: Nutscript 1.1
Objective: Getting FAS2 implemented into "schema/classes" for players to switch between so it doesn't make them join a new "Faction" for a different set of guns. (So it looks better on the Tab menu)
Question: In Nutscript you can freely switch between classes that's appointed to your faction, could I disable that and make it to where only admins can transfer you to that class?
Sorry for any confusion.
Most of my original post should still apply.
Looks like you want to know how to configure the weapons in your gamemode.
I don't know how to do that as i haven't seen or used that gamemode.
But it would be something along the lines of, check the other files in the gamemodes classes folder.
You'd be looking for a table of weapon entity names. (the folder names in a list).
Having a quick glance at the Nutscript available on github ( [url]https://github.com/Chessnut/NutScript[/url] ), i didn't see a "schema" folder anywhere.
Might get lucky with someone who knows more about it.
As for the fas2 weapons, install it like you would any other addon.
Beyond that, you might have better luck contacting the owner of Nutscript or consulting the gamemode lua documentation.
@Pyro, you're not quite understanding what I am saying.
If you don't have experience with Nutscript yourself, you probably wouldn't be able to help. I appreciate your replies though!
I'm not asking for somebody to do this, I'm just asking if it's possible (like it has been done).
Okay, after doing a lot of reasearch. I figured this out except how to disable players from switching classes freely.
EDIT:
I get "Failed to become ..className.." everytime I try to use /beclass
Any ideas? I've done some searching and only find dead ends.
Sorry, you need to Log In to post a reply to this thread.