View Full Version : Skinhack help
valenti1232289
8th November 2005, 21:40
Wondered if anyone knew hwo to reset skins? Cause the skinhack is boring when it wont go off for the round :P
Wondered about Pawn.Reset() function, and also about saving the material skins in some arrays... Anyone got a better idea?
HyPeR-X
8th November 2005, 22:17
Guess your doing it through -> var array<Material> Skins;
Pawn.Skins[X] = Texuture'bla.bla';
so just do:
Pawn.Skins[X] = None;
- HyPz
superdupe
8th November 2005, 22:30
sick.. gj hypz
frikos
8th November 2005, 22:52
hi valenti,
i remembered that problem...
i once tried it with pawn.skins[i]=None;, but then the pawns were all white without a skin, don't know what went wrong.
but i looked up some old code, where i think, that i fixed the problem too.
you just have to check which team the pawn is in and then use the following
TargetPawn.Skins[0]=me.Level.GreenTeamSkin;
or
TargetPawn.Skins[0]=me.Level.RedTeamSkin;
if your skinhack replaced the "whole array", so more than the [0]-skin, you'll have the reset the other ones too...
i think [1] was the head or the hands of the playern don't remember it
just look up the skin you need in engine/levelinfo:
var Material GreenTeamSkin;
var Material GreenHeadSkin;
var Material GreenGogglesSkin;
var Material GreenHandSkin;
var Material GreenMenuSkin;
var Material GreenHelmetSkin;
var Material RedTeamSkin;
var Material RedHeadSkin;
var Material RedGogglesSkin;
var Material RedHandSkin;
RuffianSoldier
9th November 2005, 02:41
nj Frikos
I was actually working on a skinhack reset today - i will post my version when i get around to testing it out
valenti1232289
9th November 2005, 11:00
thx for the help, didnt think i would find any materials inside level... None might not work because it aint no skin, so i think ill keep to "skinning" something like... legs, chest and helmet and then be able to reset easy ;)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.