project-navigation
Personal tools

Author Topic: Mapping-Noob Questions  (Read 19975 times)

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Mapping-Noob Questions
« Reply #30 on: March 05, 2008, 09:20:09 pm »
set the particle parameter for func_breakable to e.g. fire or burning
and the material to 0 (which is already the default)

are you using trunk? or 2.2 branch?

wotwot

  • Guest
Re: Mapping-Noob Questions
« Reply #31 on: March 05, 2008, 09:26:51 pm »
Umm.. trunk? I have 2.2 release. Also, in which folder those particles are stored? Thanks.
« Last Edit: March 05, 2008, 10:04:08 pm by wotwot »

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Mapping-Noob Questions
« Reply #32 on: March 09, 2008, 09:02:15 am »
they are stored in the ufos folder - those ufo script files that starts with a ptl_* (but be aware, that you can't use every particle as a static map particle - some are only for weapons) - the best would be to open an existing map and have a look at the particle definitions in the mapeditor for this map. Just to get a better feeling for them. They are normal entities so just select them and hit n to get the entity properties

wotwot

  • Guest
Re: Mapping-Noob Questions
« Reply #33 on: March 09, 2008, 12:48:41 pm »
Ok, thanks. Is there a way to have a sound play when a brush is destroyed?
« Last Edit: March 09, 2008, 12:51:39 pm by wotwot »

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Mapping-Noob Questions
« Reply #34 on: March 09, 2008, 07:26:13 pm »
this is done dependent on the material you assign - but i suppose the sound files are still missing ;)

Code: [Select]
switch (target->material) {
case MAT_GLASS:
gi.PositionedSound(PM_ALL, origin, target, "misc/breakglass", CHAN_AUTO, 1);
break;
case MAT_METAL:
gi.PositionedSound(PM_ALL, origin, target, "misc/breakmetal", CHAN_AUTO, 1);
break;
case MAT_ELECTRICAL:
gi.PositionedSound(PM_ALL, origin, target, "misc/breakelectric", CHAN_AUTO, 1);
break;
case MAT_WOOD:
gi.PositionedSound(PM_ALL, origin, target, "misc/breakwood", CHAN_AUTO, 1);
break;
case MAT_MAX:
break;
}

wotwot

  • Guest
Re: Mapping-Noob Questions
« Reply #35 on: March 11, 2008, 11:46:44 am »
I guess that code requires the new material system in trunk? I have no idea about compiling it, but thanks anyways.  ;)