|
|
|
|
|
PlaceObj('ParticleSystemPreset', { |
|
group = "Shooting", |
|
id = "Ammo_Shells", |
|
PlaceObj('ParticleParam', { |
|
'label', "AmmoType", |
|
'type', "point", |
|
'default_value', point(1, 1, 0), |
|
}), |
|
PlaceObj('ParticleEmitter', { |
|
'label', "ammo", |
|
'time_stop', 100, |
|
'world_space', true, |
|
'emit_detail_level', 100, |
|
'max_live_count', 1, |
|
'parts_per_sec', 2000, |
|
'lifetime_max', 1000, |
|
'size_min', 160, |
|
'size_max', 160, |
|
'texture', "Textures/Particles/bullet_shells.tga", |
|
'normalmap', "Textures/Particles/bullet_shells.norm.tga", |
|
'frames', point(4, 4), |
|
'light_softness', 0, |
|
'mat_roughness', 10, |
|
'mat_metallic', 60, |
|
'outlines', { |
|
{ |
|
point(344, 936), |
|
point(636, 936), |
|
point(624, 184), |
|
point(360, 184), |
|
}, |
|
{ |
|
point(1368, 936), |
|
point(1660, 936), |
|
point(1648, 184), |
|
point(1384, 184), |
|
}, |
|
{ |
|
point(2392, 936), |
|
point(2684, 936), |
|
point(2672, 184), |
|
point(2408, 184), |
|
}, |
|
{ |
|
point(3352, 936), |
|
point(3644, 936), |
|
point(3628, 180), |
|
point(3368, 180), |
|
}, |
|
{ |
|
point(404, 1836), |
|
point(580, 1836), |
|
point(568, 1288), |
|
point(412, 1288), |
|
}, |
|
{ |
|
point(1428, 1836), |
|
point(1604, 1836), |
|
point(1592, 1288), |
|
point(1436, 1288), |
|
}, |
|
{ |
|
point(2460, 1836), |
|
point(2616, 1836), |
|
point(2608, 1444), |
|
point(2468, 1444), |
|
}, |
|
{ |
|
point(3420, 1836), |
|
point(3576, 1836), |
|
point(3568, 1444), |
|
point(3428, 1444), |
|
}, |
|
{ |
|
point(396, 2860), |
|
point(588, 2860), |
|
point(576, 2248), |
|
point(408, 2248), |
|
}, |
|
{ |
|
point(1420, 2860), |
|
point(1612, 2860), |
|
point(1600, 2248), |
|
point(1432, 2248), |
|
}, |
|
{ |
|
point(2468, 2860), |
|
point(2612, 2860), |
|
point(2604, 2652), |
|
point(2476, 2652), |
|
}, |
|
{ |
|
point(3428, 2860), |
|
point(3572, 2860), |
|
point(3564, 2652), |
|
point(3436, 2652), |
|
}, |
|
{ |
|
point(1020, 4092), |
|
point(1020, 4092), |
|
point(1020, 4092), |
|
point(1020, 4092), |
|
}, |
|
{ |
|
point(2044, 4092), |
|
point(2044, 4092), |
|
point(2044, 4092), |
|
point(2044, 4092), |
|
}, |
|
{ |
|
point(3068, 4092), |
|
point(3068, 4092), |
|
point(3068, 4092), |
|
point(3068, 4092), |
|
}, |
|
{ |
|
point(4092, 4092), |
|
point(4092, 4092), |
|
point(4092, 4092), |
|
point(4092, 4092), |
|
}, |
|
}, |
|
'texture_hash', 252483347714699183, |
|
}, nil, nil), |
|
PlaceObj('ParticleBehaviorFadeInOut', { |
|
'fade_curve', { |
|
range_y = 10, |
|
scale = 1000, |
|
point(0, 0, 0), |
|
point(29, 1000, 1000), |
|
point(925, 1000, 1000), |
|
point(1000, 0, 0), |
|
}, |
|
}, nil, nil), |
|
PlaceObj('ParticleBehaviorPickFrame', { |
|
'anim_type', "Fixed Frame", |
|
'fixed_frame', "AmmoType", |
|
}, nil, { |
|
fixed_frame = point(2, 1), |
|
}), |
|
PlaceObj('ParticleBehaviorRotate', { |
|
'rpm_curve', { |
|
range_y = 10, |
|
scale = 10, |
|
point(0, 2200, 2200), |
|
point(596, -2200, -2200), |
|
point(939, -2200, -2200), |
|
point(1000, -2200, -2200), |
|
}, |
|
'rpm_curve_range', range(-2200, 2200), |
|
}, nil, nil), |
|
PlaceObj('FaceAlongMovement', { |
|
'bins', set(), |
|
'rotate', true, |
|
}, nil, nil), |
|
PlaceObj('ParticleBehaviorRandomSpeedSpray', { |
|
'direction', point(0, 1000, 500), |
|
'spread_angle', 500, |
|
'vel_min', 2000, |
|
'vel_max', 2000, |
|
}, nil, nil), |
|
PlaceObj('ParticleBehaviorGravityWind', { |
|
'bins', set( "A", "B" ), |
|
'direction', point(0, 0, -1000), |
|
'acceleration', 8000, |
|
}, nil, nil), |
|
PlaceObj('ParticleBehaviorCollision', { |
|
'friction', 350, |
|
'xorbins', set( "B" ), |
|
}, nil, nil), |
|
PlaceObj('Oscillate', { |
|
'bins', set( "B" ), |
|
'probability', 50, |
|
'range_min', 1000, |
|
'range_max', 10000, |
|
'x_period', 3000, |
|
'x_strength', range(0, 500), |
|
'y_period', 3000, |
|
'y_strength', range(0, 100), |
|
'z_period', 3000, |
|
'z_strength', range(0, 250), |
|
}, nil, nil), |
|
PlaceObj('Oscillate', { |
|
'bins', set( "B" ), |
|
'probability', 50, |
|
'range_min', 1000, |
|
'range_max', 10000, |
|
'x_period', 2000, |
|
'x_strength', range(0, 500), |
|
'y_period', 2000, |
|
'y_strength', range(0, 100), |
|
'z_period', 2000, |
|
'z_strength', range(0, 100), |
|
}, nil, nil), |
|
PlaceObj('Oscillate', { |
|
'bins', set( "B" ), |
|
'probability', 50, |
|
'range_min', 1000, |
|
'range_max', 10000, |
|
'x_strength', range(0, 500), |
|
'y_strength', range(0, 100), |
|
'z_strength', range(0, 250), |
|
}, nil, nil), |
|
PlaceObj('ParticleBehaviorRotate', { |
|
'bins', set( "B" ), |
|
'rpm_curve', { |
|
range_y = 10, |
|
scale = 10, |
|
point(0, 0, 0), |
|
point(291, -442, 581), |
|
point(667, -808, 884), |
|
point(1000, -1200, 1200), |
|
}, |
|
}, nil, nil), |
|
}) |
|
|
|
|