# SFDecos.SFLeavesEffect

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 |
    class SFLeavesEffect expands Effects;

    event Spawned()
    {
    	StartEffect(10, 50.0);
    }

    function StartEffect(int LeavesNum, float Radius)
    {
    	local vector	OffSet;
    	local rotator	RandRot;
    	local int		i,r1,r2,r3;
    	local SFLeaf oko;

    	for(i=1; i<=LeavesNum; i++)
    	{
    		OffSet = FRand()*Radius * VRand();
    		OffSet.z += 50;
    		RandRot.yaw = Rand(65536);
    		RandRot.pitch = Rand(65536);
    		RandRot.roll = Rand(65536);
    		oko = Spawn(class'SFDecos.SFLeaf', self, , location+OffSet, RandRot);
    	}

    }

    defaultproperties
    {
    }

class file time: 12/7/2003 3:58:26 PM - creation time: 12/7/2003 4:03:45 PM
Created with UnCodeX