Skip to content

Commit

Permalink
Scale tweaks
Browse files Browse the repository at this point in the history
--HG--
branch : new_explosions
  • Loading branch information
Ze PilOt@ZePilOt-PC authored and Ze PilOt@ZePilOt-PC committed Aug 10, 2013
1 parent 37a8a11 commit b995be5
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 4 deletions.
29 changes: 29 additions & 0 deletions effects/Entities/DebrisMisc09/DebrisMisc09_proj.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
ProjectileBlueprint {
DevStatus = 'STABLE',
Display = {
ImpactEffects = {
Type = 'Small01',
Scale = 0.2,
},
MeshBlueprint = '/meshes/projectiles/debris_misc_04_mesh.bp',
UniformScale = 0.30,
},
Physics = {
MinBounceCount = 2,
MaxBounceCount = 5,
DestroyOnWater = true,
DirectionX = 0,
DirectionXRange = 1,
DirectionY = 0.75,
DirectionYRange = 0.5,
DirectionZ = 0,
DirectionZRange = 1,
InitialSpeed = 5.5,
InitialSpeedRange = 6,
MaxSpeed = 24,
RotationalVelocity = 360,
RotationalVelocityRange = 180,
Lifetime = 20,
VelocityAlign = false,
},
}
9 changes: 9 additions & 0 deletions effects/Entities/DebrisMisc09/DebrisMisc09_script.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# script for projectile BoneAttached
#
local GenericDebris = import('/lua/genericdebris.lua').GenericDebris
DebrisMisc04 = Class(GenericDebris) {
}

TypeClass = DebrisMisc04

6 changes: 4 additions & 2 deletions lua/defaultexplosions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,6 @@ end
#---------------------------------------------------------------
function CreateDebrisProjectiles( obj, volume, dimensions )
LOG(volume)
LOG(repr(obj.Spec))
local partamounts = math.min(GetRandomInt( 1 + (volume * 50), (volume * 100) ) , 300)
local sx, sy, sz = unpack(dimensions)
local vector = obj.Spec.OverKillRatio.debris_Vector
Expand All @@ -318,7 +317,10 @@ function CreateDebrisProjectiles( obj, volume, dimensions )
zdir = (vector[3] * 5) + GetRandomOffset2( sx, sy, sz, 1 )
end

local rand = 4#Random(1,5)
local rand = 4
if volume < 0.3 then
rand = 9
end
obj:CreateProjectile('/effects/entities/DebrisMisc0' .. rand .. '/DebrisMisc0' .. rand .. '_proj.bp',xpos,xpos,zpos,xdir,ydir + 4.5,zdir)
end
end
Expand Down
4 changes: 2 additions & 2 deletions units/UAL0106/UAL0106_unit.bp
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ UnitBlueprint {
SelectionSizeX = 0.3,
SelectionSizeZ = 0.3,
SelectionThickness = 1.2,
SizeX = 0.7, #from 0.6
SizeX = 0.6, #from 0.6
SizeY = 0.6,
SizeZ = 1, # 0.6
SizeZ = 0.6, # 0.6
StrategicIconName = 'icon_bot1_directfire',
StrategicIconSortPriority = 135,
Transport = {
Expand Down

0 comments on commit b995be5

Please sign in to comment.