AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Making a player's model all black, is it possble? (https://forums.alliedmods.net/showthread.php?t=6049)

Mahnkiman 09-20-2004 09:08

Making a player's model all black, is it possble?
 
I'm working on a plugin where I would like to shade the model of a player to be all black. The player would look like a black shadow. I've used the set_user_rendering function before but I don't know if it'll work in this case. Even if it would, I don't know the right "ingredients" to get the result I want since I don't know what all the rendering modes mean.

Any ideas?

Votorx 09-20-2004 12:54

Set the skin of the model completely black, I believe setting skins can be done with amxmodx.

Mahnkiman 09-20-2004 13:53

Quote:

Originally Posted by Votorx
Set the skin of the model completely black, I believe setting skins can be done with amxmodx.

Setting models can be done, but I'd rather not do that. I'd have to edit a model, make it black, then everyone who connects to the server running my plugin will have to download it.

Otherwise I can't find a native function that does what you're describing.

Twilight Suzuka 09-20-2004 18:52

set_rendering.
Do it all 0's and it will set it entirely black.

Votorx 09-20-2004 20:04

I Would have sworn there was a way to skin models in game. I thought I heard someone talking about that on the forums here...

Twilight Suzuka 09-20-2004 20:14

A. There isnt.
B. Your wrong.
C. Just setting their rendering to 0 is easy enough.

Votorx 09-20-2004 20:59

Yeah I realize that, I really don't think I needed your help to come to that conclusion.

Ryan 09-21-2004 01:11

keep in mind there are several render MODES to try setting on the player entity. To my knowledge, setting all the 'color' values to 0 does not make the player completely black. in fact, i believe much like the screen fades, it would do absolutely nothing since there is no MODULATE flag that you can put on the player, but then again I havent tested it, either.

Mahnkiman 09-21-2004 07:25

Quote:

Originally Posted by Twilight Suzuka
set_rendering.
Do it all 0's and it will set it entirely black.

Ok, I'll try this, then. But why use set_rendering over set_user_rendering?

And if I use set_rendering, what do I pass as the first parameter?

Twilight Suzuka 09-21-2004 09:40

Quote:

Originally Posted by Votorx
Yeah I realize that, I really don't think I needed your help to come to that conclusion.

Consider it payment for the phyco bitch comment.

Code:

                set_user_rendering(Target,21,0,0,0,0,0)
where target is the ID of the target. works for me.


All times are GMT -4. The time now is 17:21.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.