home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


Laser Particle Effect

by mukkan on 09/16/2005 14:12, 3 messages, last message: 08/25/2008 07:15, 1567 views, last view: 04/24/2024 11:18

Could some one possibly help me out in understanding how the particle system works? What I want is basically a solid red line like the rifle line, but just solid red. I know how to make the particles fade quicker.

Anyone possibly tell me how I could do this?

I would be very greatfull.

Thanks,
Mukkan

   Board Index   

#2: particles numbers

by JackOfSpades on 08/24/2008 16:13

thats how the particles numbers works:
1st: type 2nd: subtype(shape) 3rd: size 4th: color
red should be -255, i have no idea how this system works.

reply to this message

#3: Re: particles numbers

by Hirato Kirata on 08/25/2008 00:12, refers to #2

the colour is actually a value out of 4096, ie, 0xRGB, it means you have 16 choices per colour channel.

15 is full blue, 240 is full green, and 3840 is full red to name a few examples :)
keep in kind, as the initial choice is 0, the final choice of the 4096 choices is a value of 4095

reply to this message

#4: laser particle

by a~baby~rabbit on 08/25/2008 07:15

Do you want, 1) a solid red line in the map via existing particle entities, or 2) modify one of the weapons to show a red laser beam effect?

1) /newent particles 4 <direction> <length> 0xF00 (see documentation)

2) from weapons code call renderparticles.cpp:particle_flare(..), and reference a new entry in partmaps[] - { 9, 0xFF0000, 0.28f} - for a redflare.

reply to this message

   Board Index   


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
53873405 visitors requested 71648627 pages
page created in 0.023 seconds using 10 queries
hosted by Boost Digital