can you help me modify this CEG to give it more boom?

can you help me modify this CEG to give it more boom?

Share and discuss visual creations and creation practices like texturing, modelling and musing on the meaning of life.

Moderators: MR.D, Moderators

Post Reply
yanom
Posts: 323
Joined: 10 Jul 2009, 23:34

can you help me modify this CEG to give it more boom?

Post by yanom »

I'm modifying the old CT codebase into a new game and I've got this CEG. Now I want to scale it up to give it an explosion that's about 8x bigger. What numbers should I modify?

Code: Select all

--ct_impact_beamshot_green_big
--Bigger impact CEG for green beam weapons (Drone)
--by Sanada

return {
  ["ct_impact_beamshot_green_big"] = {
    fireballs = {
      air                = true,
      class              = [[CSimpleParticleSystem]],
      count              = 3,
      ground             = true,
      underwater         = 1,
      useairlos          = true,
      water              = true,
      alwaysVisible      = 0,
	  properties = {
        alwaysVisible      = 0,
	    airdrag            = 0.9,
        colormap           = [[1.0 1.0 1.0 0.04   0.2 0.9 0.2 0.01  0.1 0.8 0.1 0.01]],
        directional        = 1,
        emitrot            = 40,
        emitrotspread      = 32,
        emitvector         = [[0, 1, 0]],
        gravity            = [[0, -0.05, 0]],
        numparticles       = 15,
        particlelife       = 9,
        particlelifespread = 5,
        particlesize       = 10,
        particlesizespread = 0,
        particlespeed      = 3,
        particlespeedspread = 5,
        pos                = [[0, 2, 0]],
        sizegrowth         = 1,
        sizemod            = 1,
        texture            = [[tpsmoke2]],
      },
    },
	
    dirtpoofs = {
      air                = false,
      class              = [[CSimpleParticleSystem]],
      count              = 3,
      ground             = false,
      underwater         = 1,
	  unit               = false,
	  nounit             = true,
      useairlos          = true,
      water              = true,
      alwaysVisible      = 0,
	  properties = {
        alwaysVisible      = 0,
	    airdrag            = 0.9,
        colormap           = [[0.4 0.3 0.2 0.8    0.2 0.15 0.1 0.8    0.2 0.15 0.1 0.7     0.2 0.15 0.1 0.7]],
        directional        = 1,
        emitrot            = 5,
        emitrotspread      = 25,
        emitvector         = [[0, 1, 0]],
        gravity            = [[0, -1, 0]],
        numparticles       = 10,
        particlelife       = 12,
        particlelifespread = 5,
        particlesize       = 2,
        particlesizespread = 0,
        particlespeed      = 8,
        particlespeedspread = 5,
        pos                = [[0, 2, 0]],
        sizegrowth         = 0,
        sizemod            = 1,
        texture            = [[tpsmoke2]],
      },
    },	
	
    ["groundflash"] = {
    
	alwaysVisible=0,
      flashSize = 24,
      flashAlpha = 0.95,
      circleGrowth = 0.8,
      circleAlpha = 0.3,
      ttl = 6,
      color = [[0.2 0.9 0.2]],
      alwaysvisible=0,
	  air=1,
      ground=1,
      water=1,
   },
  
  },


}
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: can you help me modify this CEG to give it more boom?

Post by knorke »

increase:
particlesize - obv
particlelife - particles alive longer: can drift further apart
particlespeed - faster particles drift further apart as well
airdrag - bigger=less slowdown (1=none), makes them drift further apart

groundflash: obvious i think
Post Reply

Return to “Art & Modelling”