Search the Community
Showing results for tags 'remodel'.
Found 1 result
-
Custom textures for player skins. This guide will show you how you can change textures on an excisting skins IF this skin supports the texture. In more detail, I will show you how to give admin a certain skin on command. You can use this for other ideas ( clan skins, event clothing, make fun of the admin skin?). Screenshots (My work): Screenshots (raymix): As you can see, you can make some nice stuff with custom texture The first one is build on a civilian model ( default ) and raymix uses a different one ( i dont know which one that is) NOW HOW DO I DO THIS 1) in your compiles.sqf add a public event handeler inside if (!isDedicated) then { add "PVOZ_adminSkin" addPublicVariableEventHandler { _obj = (_this select 1) select 0 ; _colour = (_this select 1) select 1; // this can also be a color or an image (color format = #(rgb,8,8,3)color(1,0,0,1) _obj setObjectTexture [0, _colour]; };(THIS ACTIVATES admin skin on all clients) 2) now in your init.sqf, add the following at the bottom { _adminated = _x getVariable ["adminated",0]; if( !isNil "_adminated" && _adminated != 0)then{ _x setObjectTexture [0, "gui\upg\admin.jpg"]; }; }forEach playableUnits; // if your antihack doesnt allow this use nearestObjects[player, ["Survivor2_DZ"],25000]; ( this will check all players if they have adminate active and reskin their skin) , THIS IS SO IF a client LOGS IN HE ALSO sees that the admin has adminskin on) 3) to activate , i'll show u how i do it in infistar I add a option "Suit up" above "teleport to player" add them to each level u want adminadd = adminadd + [" Suit UP",adminskinning,"0","0","0","1",[0,0.8,1,1]]; now look for admint2me = { and add ABOVE: ( change the image path to your image) adminskinning = { PVOZ_adminSkin = [player , "gui\upg\admin.jpg" ]; // (or color , "#(argb,1,1,1)color(0,0,0,1)" ) publicVariable "PVOZ_adminSkin"; player setObjectTexture [0, "gui\upg\admin.jpg"]; // (to also see it yourself) player setVariable["adminated",1,true]; }; To deavtivate your skin, just change into another skin! The skin image must be in your missions pbo IMPORTANT BATTLEYE Add the following exeptioon to publicvariable.txt in your battleye folder on line 2 or 1 ( depends how it is made) on the FIRST line that start with 5 add add the very end ( see there is a space between this and the last item) !="PVOZ_adminSkin" IMAGE SIZE: 1024px x 1024 px !! example images: (MINE, quickly made with limitted time ^^) raymix probably did this quite better https://www.dropbox.com/s/crd2qjk2zczj8kb/admin.jpg?dl=0 or CHANGE THIS TO 1024 x 1024 to work ( By Sukkaed)
- 113 replies
-
- setobjecttexture
- texture
- (and 8 more)