Overview | Package | Class | Source | Class tree | Glossary | Deus Ex 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 00055 00056 00057 00058 00059 00060 00061 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 |
//============================================================================= // HumanCivilian. //============================================================================= class HumanCivilian extends ScriptedPawn abstract; function PostBeginPlay() { Super.PostBeginPlay(); // Eventually, these will all be unique sounds per NPC specified in // the defaultproperties // change the sounds for chicks if (bIsFemale) { HitSound1 = Sound'FemalePainMedium'; HitSound2 = Sound'FemalePainLarge'; Die = Sound'FemaleDeath'; } // change the sounds for kids if (IsA('ChildMale') || IsA('ChildMale2')) { HitSound1 = Sound'ChildPainMedium'; HitSound2 = Sound'ChildPainLarge'; Die = Sound'ChildDeath'; } } function bool WillTakeStompDamage(actor stomper) { // This blows chunks! if (stomper.IsA('PlayerPawn') && (GetPawnAllianceType(Pawn(stomper)) != ALLIANCE_Hostile)) return false; else return true; } defaultproperties { BaseAccuracy=1.200000 maxRange=400.000000 MinHealth=40.000000 bPlayIdle=True bAvoidAim=False bReactProjectiles=False bFearShot=True bFearIndirectInjury=True bFearCarcass=True bFearDistress=True bFearAlarm=True EnemyTimeout=1.500000 bCanTurnHead=True bCanStrafe=False WaterSpeed=80.000000 AirSpeed=160.000000 AccelRate=500.000000 BaseEyeHeight=40.000000 UnderWaterTime=20.000000 AttitudeToPlayer=ATTITUDE_Ignore HitSound1=Sound'DeusExSounds.Player.MalePainSmall' HitSound2=Sound'DeusExSounds.Player.MalePainMedium' Die=Sound'DeusExSounds.Player.MaleDeath' VisibilityThreshold=0.010000 DrawType=DT_Mesh Mass=150.000000 Buoyancy=155.000000 BindName="HumanCivilian" } |
Overview | Package | Class | Source | Class tree | Glossary | Deus Ex UnrealScript Documentation |
previous class next class | frames no frames |