Allow options for different rockets to fire

Possible to add commands that allow this to be altered

var prop = GameManager.server.CreateEntity("assets/content/vehicles/mlrs/rocket_mlrs.prefab",

 

I've changed it to fire mrls rockets and it works, just curious if you could do that. Thanks!

Possibly you could add just different commands for different rockets, would probably be easier that way. I will try to modify it my self. Will let you know if I am successful lol

Merged post

Here is the thing I modified

 

h ttps://pastebin.com/kDkcaeXs

 

Has some issues, but I am not familar to codeing. Sill new to it



Merged post

For some reason it has an issue with effect now

Then if you remove it

issues with the new regions I created.



Merged post

Probably a better way to merge all of those prefabs into one entire block of code. Lol. I just dont know how

Merged post

Ignore everything above

 

Did the suggestion I wanted on my own, works fine except regular rocket_fire!

Allows users to select /trocketfire , /trockethv , /tlrocketmlrs , /tlrocketsam , etc. Speed applies to all of them. Config file has all of the settings. Turns off and on, you can have multiple selected, but you can turn all of them off but one. I had the issue of all of them being on lol.

 

https://pastebin.pl/view/3a782d7a



Merged post

perms

permission.RegisterPermission("trollcheaters.admin", this); //basic
            permission.RegisterPermission("trollcheaters.adminfire", this);
            permission.RegisterPermission("trollcheaters.adminhv", this);
            permission.RegisterPermission("trollcheaters.adminmlrs", this);
            permission.RegisterPermission("trollcheaters.adminhelinapalm", this);
            permission.RegisterPermission("trollcheaters.adminhelirocket", this);
            permission.RegisterPermission("trollcheaters.adminsam", this);
            permission.RegisterPermission("trollcheaters.rspeed", this);
            permission.RegisterPermission("trollcheaters.dropban", this);
            permission.RegisterPermission("trollcheaters.rdban", this);
            permission.RegisterPermission("trollcheaters.bscreen", this);
            LoadPlayerData();


Merged post

Found a bug

When using /trocket , and any of the other /trocket commands, it alters the settings for other players with permissions. Same thing with speed