Garry's Mod

Garry's Mod

Pony Player Models
MikeNized 24 May, 2014 @ 2:37pm
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.
< >
Showing 1-9 of 9 comments
Scentus  [developer] 25 May, 2014 @ 1:56pm 
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.
MikeNized 25 May, 2014 @ 2:45pm 
On my side, don't worry, I'll look for it as well.
I Darkstar X 6 Jul, 2014 @ 11:11pm 
Been a while...
MikeNized 7 Jul, 2014 @ 12:04am 
Been busy lately :p
Scentus  [developer] 10 Jul, 2014 @ 6:12am 
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.
MikeNized 18 Jul, 2014 @ 3:01pm 
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
I Darkstar X 18 Jul, 2014 @ 3:37pm 
Oh dear...
Linos Melendi 21 Jul, 2014 @ 10:29pm 
Originally posted by 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.
Last edited by Linos Melendi; 21 Jul, 2014 @ 10:34pm
MikeNized 29 Jul, 2014 @ 2:26pm 
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).
< >
Showing 1-9 of 9 comments
Per page: 1530 50