Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.02 KB | None | 0 0
  1.  
  2.  
  3. FrostBallSpikes =
  4. {
  5.     EffectAdd =
  6.     {
  7.         spawnRate = 1.2,
  8.         velocityRand = 0.1,
  9.         color = {0.2, 0.2, 0.7, 1},
  10.         scale = {1, 3, 0},
  11.         spawnRadius = lerp(1, 1, 2, 0.2),
  12.         decay = lerp(2, 3, 4, 0.5),
  13.         textureIndex = 2
  14.     },
  15. }
  16.  
  17. FrostBallFog =
  18. {
  19.     EffectAdd =
  20.     {
  21.         spawnRate = 0.5,
  22.         velocityRand = 0.01,
  23.         color = {0.1, 0.3, 0.4, 1},
  24.         scale = {8, 7, 1},
  25.         spawnRadius = lerp(1, 1, 2, 0.2),
  26.         decay = lerp(2, 3, 4, 0.5),
  27.         textureIndex = 0
  28.     },
  29. }
  30.  
  31. FrostBallTone =
  32. {
  33.     EffectAdd =
  34.     {
  35.         spawnRate = 0.1,
  36.         velocityRand = 0.0,
  37.         color = {0.25, 0.5, 1, 1},
  38.         scale = {0, 5, 12},
  39.         spawnRadius = lerp(0, 0, 0, 0.2),
  40.         decay = lerp(8, 5, 1, 0.5),
  41.         textureIndex = 1,
  42.         sourceForce = 0.9,
  43.         facing = 1
  44.     },
  45. }
  46.  
  47. FrostBall =
  48. {
  49.     cast = "Projectile",
  50.     cooldown = 20,
  51.     delay = 10,
  52.    
  53.     Network =
  54.     {
  55.         create = true,
  56.         collision = true,
  57.         destroy = true
  58.     },
  59.    
  60.     Light =
  61.     {
  62.         color = Color(0.1, 0.3, 0.4, 1),
  63.         scale = 6
  64.     },
  65.    
  66.     Affect =
  67.     {
  68.         --damageOnImpact = 30
  69.     },
  70.    
  71.     --Render =
  72.     --{
  73.     --  mesh = "Mesh@IdentitySphere",
  74.     --  texture = "textures/blue.png",
  75.     --  visible = true,
  76.     --  scale = 0.5
  77.     --},
  78.  
  79.     Physics =
  80.     {
  81.         radius = 2.5,
  82.         moveSpeed = 0.2,
  83.         mass = 10,
  84.         friction = 0,
  85.         frictionDamage = 0.75,
  86.         deflect = 0,
  87.         solid = true,
  88.        
  89.         reactByParent = false,
  90.         reactOnParent = false,
  91.         affectOnParent = false,
  92.        
  93.         reactOnChilds = false,
  94.         canModifyParent = true
  95.     },
  96.  
  97.     Timer =
  98.     {
  99.         {0, 200}
  100.     },
  101.  
  102.     Script =
  103.     {
  104.         onCreated = function()
  105.  
  106.             Object.mountToSelf("FrostBallFog");
  107.             Object.mountToSelf("FrostBallSpikes");
  108.             Object.mountToSelf("FrostBallTone");
  109.         end,
  110.        
  111.         onPostCreated = function()
  112.  
  113.         end,
  114.        
  115.         onDestroy = function()
  116.        
  117.         end,
  118.        
  119.         onTimer = function(slot)
  120.             if (slot == 0) then
  121.                 Object.destroy(Object.SELF)
  122.             end
  123.         end,   
  124.        
  125.         onDestinationReached = function(x, y, z)
  126.  
  127.         end,
  128.        
  129.         onTriggerEnter = function(name, solid)
  130.             if (solid) then
  131.                 Object.postToSelf("RemoveOwnership")
  132.             end
  133.         end,
  134.        
  135.         onTriggerLeave = function()
  136.  
  137.         end
  138.     }
  139. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement