Garry's Mod

Garry's Mod

Pony Player Models
Pony Models in Murder ?! Possible with your help!
Greetings!

Lemme explain, first, the situation. Wishing to use pony models into a Murder server, I would like to be able to set a random skin on a pony player. I could just set the pony model but it would always be the same for the player, ruining the experience of the unknown factor.

Selecting a pony model as character model for the player isn't a problem, it is just a line in the .lua of the Murder mode. On the other side, having a random skin selected is an other.

Considering that the model values (mane, size, color...) is set according to the file ppm/_current.txt, I would like to be able to :
1 - Load a custom file and set it as model, without saving the values. The problem is, even if it is a preset .txt (applejack.txt, twilight.txt...), as soon as I set it, the values in the _current.txt are erased. Wishing to not to do that, I'd prefer being able to set the values on my own, without saving into the _current.txt.
2 - Get the random values as a String and set them via a console input. I would like to get the random values, used by the Random Button, as a command in the console, making me able to get them in order to set them (mpp_setvalues string, for example) via a console input.

Thanks you in advance, please ask me if you have any questions about my request, I do understand how lua coding works, just doesn't have the time to program them afterward.
< >
1-9 van 9 reacties weergegeven
Scentus  [ontwikkelaar] 25 mei 2014 om 13:56 
So, if I'm understanding you correctly, you would like a script that would allow changing a players pony's coloring and look without overwriting their _current.txt file and to give them a random set of values each time (both of these are easy enough, in fact there are functions for each of these that just need to be called in the write order).

I would be happy to help you out and even write a code sniplet for you to do exactly this, but you would have to wait a few days as I am starting a new summer job this Tuesday and want to get settled in with that a little before I continue my work on the pony mod. I'm subscribed to this discussion now so I should see any posts here quickly enough.
On my side, don't worry, I'll look for it as well.
Been a while...
Been busy lately :p
Scentus  [ontwikkelaar] 10 jul 2014 om 6:12 
I'll probably be making what you want possible while fixing the things the most recent update broke sometime next week. Just hang tight for now.
While working on it, I've been wondering about it and it might be a problem. The pony models don't hold weapons and items correctly. So players won't be able to see knife or guns.
This might be a problem :p
Oh dear...
Origineel geplaatst door Mike Nized:
While working on it, I've been wondering about it and it might be a problem. The pony models don't hold weapons and items correctly. So players won't be able to see knife or guns.
This might be a problem :p

Add this to the shared.lua's of "weapon_mu_knife" and "weapon_mu_magnum"

http://pastebin.com/Y3tvcNV8

Works for the weapons in my TTT server
http://puu.sh/alSkK/b97305f3b2.jpg

Unfortunately it works for the gun but not the knife, if anyone can figure out why that would be appreciated.
Laatst bewerkt door Linos Melendi; 21 jul 2014 om 22:34
So, the gun follow the direction where the player is pointing at? Mhm, interesting.

Well, I guess we could place the knife ahead of the character and get the classic stab animation (even if it was related to the arm movement, I believe).

Like I said, I'm quite busy lately, I'll look into it next week (woohoo, days off).
< >
1-9 van 9 reacties weergegeven
Per pagina: 1530 50