Home   Help Search Login Register  

Author Topic: Smoke in Weapon  (Read 1472 times)

0 Members and 1 Guest are viewing this topic.

Offline Praxtor

  • Members
  • *
    • Operflashpoint
Smoke in Weapon
« on: 16 Aug 2005, 23:25:10 »
Ei guys i am making one Mortar and i have one problem i need create the white smoke for when i shoot but i donÂ't know how i can make this, i think whith i need add some code in the config but i am not sure
Can somebody help me?
Regards
 ;D
« Last Edit: 17 Aug 2005, 18:58:59 by Praxtor »

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:Smoke in Weapon
« Reply #1 on: 17 Aug 2005, 01:49:14 »
you can script it using the drop comand,

this is a good particle to use for black

Code: [Select]
drop ["cl_basic", "", "Billboard", 5, 2, [0, 0, 0], [0,0,0], .5, .11, 1, .3, [.3,4],[[0,0,0,.3],[0,0,0,0]],[0],0,0,"","",_pos]

you put that in your config i think

where _pos is put the position you want the particle to apear the particle will last 2 seconds
« Last Edit: 17 Aug 2005, 02:06:00 by penguinman »

Offline remcen

  • Contributing Member
  • **
  • a.k.a. hottentotten_mike
    • IM:UC
Re:Smoke in Weapon
« Reply #2 on: 17 Aug 2005, 14:42:35 »
you put that in your config i think
oh please not in the config mate, this belongs into an external script. check the editors' depot for smoke scripts, i'm sure you'll find something useful there.

but apart from adding a script you can also tweak the config to get more smoke, which is a lot less lag-intense. for example here's the relevant config part for the main gun of our bmd-1. it's a standalone subclass somehwere above the cfgvehicles section
 
Code: [Select]
class WeaponCloudsGun {};
class imuc_SabotClouds : WeaponCloudsGun
{
   access=3;
   cloudletDuration=2;
   cloudletAnimPeriod=0.8;
   cloudletSize=2.0;
   cloudletAlpha=0.7;
   cloudletGrowUp=0.1;
   cloudletFadeIn=0.1;
   cloudletFadeOut=2;
   cloudletAccY=0.4;
   cloudletMinYSpeed=0.3;
   cloudletMaxYSpeed=0.9;
   cloudletShape="cl_basic";
   cloudletColor[]={0.345,0.36,0.348,0.15};
   interval=0.1;
   size=1.0;
   sourceSize=0.2;
   timeToLive=0.1;
   initT=20;
   deltaT=-10;

   class Table
      {
         class T1 { maxT=0; color[]={1,1,1,0}; };
         class T2 { maxT=500; color[]={1,1,0,0};   };
         class T3 { maxT=800; color[]={0,0,0,0};   };
         class T4 { maxT=1000; color[]={1,1,1,0}; };
         class T5 { maxT=1800; color[]={0.18,0.18,0.18,0}; };
         class T6 { maxT=2000; color[]={0.1,0.1,0.1,0}; };
         class T7 { maxT=4000; color[]={0.25,0.25,0.251,0}; };
      };
   };

than you put in the cfgvehicle part of your vehicle the following sub-class:
Code: [Select]
     
                class GunClouds: imuc_SabotClouds{};
you can also insert the whole part i posted in the first quote in the cfgvehicle section, but IMO that makes the config a little complex-

tweak the code a bit so that it fits your needs and please change all imuc- tagged classnames. so your bit would start maybe like "class WeaponCloudsGun {};
class prx_mortarClouds : WeaponCloudsGun
{... etc.... "

ps. don't thank me but IM:UC's config wizard tomislav for this as he was the one who figured out for us how it works ;)
« Last Edit: 17 Aug 2005, 14:47:10 by remcen »
we're looking for members: IM:UC MOD

Offline Praxtor

  • Members
  • *
    • Operflashpoint
Re:Smoke in Weapon
« Reply #3 on: 17 Aug 2005, 19:02:31 »
Ei guys thanks for your help.
regards
Praxtor