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 |
//============================================================================= // SteelBox. //============================================================================= class SteelBox extends Decoration; #exec AUDIO IMPORT FILE="sounds\general\bPush1.wav" NAME="ObjectPush" GROUP="General" #exec AUDIO IMPORT FILE="sounds\general\EndPush.wav" NAME="Endpush" GROUP="General" #exec MESH IMPORT MESH=SteelBoxM ANIVFILE=MODELS\Box_a.3D DATAFILE=MODELS\Box_d.3D X=0 Y=0 Z=0 #exec MESH ORIGIN MESH=SteelBoxM X=0 Y=0 Z=0 YAW=64 #exec MESH SEQUENCE MESH=SteelBoxM SEQ=All STARTFRAME=0 NUMFRAMES=1 #exec MESH SEQUENCE MESH=SteelBoxM SEQ=Still STARTFRAME=0 NUMFRAMES=1 #exec TEXTURE IMPORT NAME=JSteelBox1 FILE=MODELS\steelBox.PCX GROUP=Skins #exec MESHMAP SCALE MESHMAP=SteelBoxM X=0.08 Y=0.08 Z=0.16 #exec MESHMAP SETTEXTURE MESHMAP=SteelBoxM NUM=1 TEXTURE=JSteelBox1 Auto State Animate { function TakeDamage( int NDamage, Pawn instigatedBy, Vector hitlocation, Vector momentum, name damageType) { Instigator = InstigatedBy; SetPhysics(PHYS_Falling); Momentum.Z = 1000; Velocity=Momentum*0.016; } } defaultproperties { bPushable=True PushSound=Sound'UnrealShare.General.ObjectPush' EndPushSound=Sound'UnrealShare.General.Endpush' bStatic=False DrawType=DT_Mesh Mesh=LodMesh'UnrealShare.SteelBoxM' CollisionRadius=29.000000 CollisionHeight=26.000000 bCollideActors=True bCollideWorld=True bBlockActors=True bBlockPlayers=True Mass=60.000000 } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |