Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 |
/****************************************************************************** ChristmasTankVictim Creation date: 2012-11-25 13:09 Last change: $Id$ Copyright © 2012, Wormbo Website: http://www.koehler-homepage.de/Wormbo/ Feel free to reuse this code. Send me a note if you found it helpful or want to report bugs/provide improvements. Please ask for permission first, if you intend to make money off reused code. ******************************************************************************/ class ChristmasTankVictim extends TankVictim; simulated function PostNetBeginPlay() { if (Level.NetMode != NM_DedicatedServer) AttachDeco(Self, class'SantaHatMeshAttachment', 'Bone_skull', vect(-2,7,0), rot(-16384,0,-6400), 0.175, vect(1,1,1)); } simulated function Actor AttachDeco(Actor A, class<Actor> AttachmentClass, name BoneName, vector LocOffset, rotator RotOffset, float Scale, vector Scale3D) { local Actor Deco; if (Level.NetMode == NM_DedicatedServer) return None; Scale3D *= A.DrawScale3D; if (A.DrawScale3D.X < 0) { RotOffset.Pitch = -RotOffset.Pitch; RotOffset.Roll = -RotOffset.Roll; } Deco = Spawn(AttachmentClass,,, A.Location, A.Rotation); A.AttachToBone(Deco, BoneName); Deco.SetRelativeLocation(LocOffset * A.DrawScale * A.DrawScale3D); Deco.SetRelativeRotation(RotOffset); Deco.SetDrawScale(Scale * A.DrawScale); Deco.SetDrawScale3D(Scale3D); return Deco; } //============================================================================= // Default values //============================================================================= defaultproperties { } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |