Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global PSFX_Shot =
- {
- emitters =
- [
- {
- texture = "images/smoke.png",
- tempslots = 1,
- spawncount = 8,
- spawncount_rand = 3,
- spawn_code =
- [
- "RANDEXT; position; PS.emitpos; 1.2",
- "RANDBOX; angle; 0; 360",
- "RANDEXT; size; 15; 4",
- "RANDEXT; color; vec4(0.6,0.6,0.6,0.4); vec4(0.02,0.02,0.02,0.04)",
- "RANDEXT; velocity; 0; 1",
- "RANDEXT; tmp0; 20; 8",
- "MULA; tmp0; PS.emitdir",
- "ADDA; velocity; tmp0",
- "SET; timeleft; randf()*0.2+1",
- ],
- tick_code =
- [
- "MAD; position; velocity; delta",
- "SUBA; timeleft; delta",
- "ADDA; size; delta*2",
- "SUBA; color; vec4(0,0,0,0.7)*delta",
- "LERPTO; velocity; vec2(0); delta*0.8",
- ],
- },
- {
- texture = "images/fire.png",
- tempslots = 0,
- spawncount = 8,
- spawncount_rand = 3,
- rendermode = "additive",
- spawn_code =
- [
- "RANDEXT; position; PS.emitpos; 1.2",
- "RANDBOX; angle; 0; 360",
- "SET; size; 5",
- "RANDEXT; color; vec4(0.8,0.8,0.8,0.8); vec4(0.02,0.02,0.02,0.04)",
- "RANDEXT; velocity; 0; 1",
- "ADDA; velocity; PS.emitdir * (1.3 + randf()*0.7)",
- "SET; timeleft; randf()*0.1+0.3",
- ],
- tick_code =
- [
- "MAD; position; velocity; delta",
- "SUBA; timeleft; delta",
- "ADDA; size; delta*2",
- "SUBA; color; vec4(0,0,0,3.7)*delta",
- "LERPTO; velocity; vec2(0); delta*0.8",
- ],
- },
- ]
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement