## XIDCine
Class Explosif

source: C:\XIII\XIDCine\Classes\explosif.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Mover
             |
             +--XIII.XIIIMover
                |
                +--XIDCine.BreakableMover
                   |
                   +--XIDCine.Explosif

Direct Known Subclasses:Bidon, Caisse, CaisseBig, GroundExtinguisher, WallExtinguisher

class Explosif
extends XIDCine.BreakableMover

    //-----------------------------------------------------------
    // Explosif
    // Created by iKi
    // Last Modification by iKi
    //-----------------------------------------------------------

Function Summary
`void` | `BlowUp(vector HitLocation)`
    //_____________________________________________________________________________
    // ELR added damages when exploding
`void` | `Breaked()`

Source Code

    00001	//-----------------------------------------------------------
    00002	// Explosif
    00003	// Created by iKi
    00004	// Last Modification by iKi
    00005	//-----------------------------------------------------------
    00006	class Explosif extends BreakableMover;
    00007
    00008
    00009	VAR(Damage) float DamageRadius;
    00010	VAR(Damage) float DamageAmount;
    00011
    00012	//_____________________________________________________________________________
    00013	// ELR added damages when exploding
    00014	function BlowUp(vector HitLocation)
    00015	{
    00016		HurtRadius( DamageAmount, DamageRadius, class'DTGrenaded', 0, HitLocation );
    00017		if ( Role == ROLE_Authority )
    00018			MakeNoise(1.0);
    00019	}
    00020
    00021	FUNCTION Breaked()
    00022	{
    00023		BlowUp(Location);	// ELR Added Damages when exploding
    00024		Super.Breaked();
    00025	}
    00026
    00027
    00028
    00029	defaultproperties
    00030	{
    00031	     DamageRadius=1000.000000
    00032	     DamageAmount=150.000000
    00033	     SoundWhenBroken=Sound'XIIIsound.Explo__MoverExplo.MoverExplo__hMoverExplo'
    00034	}

End Source Code