Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial Trigger Radius, Pingplayer and Ambient Sounds
#1
Good evening

Another tutorial(I am bored), lol. This time is about trigger radius, pingplayer and ambient sounds.

Trigger Radius is a object that is a invisible sphere. T.radius way of calling them is:

Code:
spawn( "trigger_radius", position, spawn flags, radius, height )

About flags, I dont know how does that work, so I will put on 0, an example of trigger radius could be:

Code:
    trigger = spawn( "trigger_radius", self.origin, 0, 40, 10 );

You can use a few commands with them:

Code:
    trigger.angles = (0,0,0); //angles
    trigger setContents(1); //make it solid
    self waittill("trigger", player); //detect when player touches it, I think...

Now, Ill tell about ambient sounds, ambient sounds are those sounds that play on maps, like rain on underpass for example, its use is:

Code:
    ambientPlay("ambient name you want to give", time to wait before ambient plays)

An example:

Code:
    ambientPlay( "ambient_mp_desert" , 0.5);

You can also use this command to stop the ambient:

Code:
    ambientStop( time to wait before ambient plays )

Example of stop:

Code:
    ambientStop( 1 );

Now, Ill talk about this command, pingplayer, what it does is to update player minimap icon with a red "!" icon, like in quickmessages, this command can be usefull for example when you want to show an event, SnD planting for example, Big Grin

Code:
    self pingPlayer();

Thats all, Tongue
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] CS addon for MW2(Sounds,show damage) Fl0w_.JACKDAN 1 4,718 09-29-2013, 19:46
Last Post: Nekochan
  Help Playing sounds ingame? Some 2 3,419 09-10-2013, 10:42
Last Post: Yamato
  [Release] Modern Warfare 3 Fast File Sounds master131 5 18,373 05-21-2013, 16:46
Last Post: ZURA.
  [Release] Modern Warfare 2 Fast File Sounds master131 3 15,843 11-13-2012, 07:19
Last Post: DidUknowiPwn
  [Tutorial] Adding sounds to SP weapons (in multiplayer) Nukem 54 36,384 11-09-2012, 18:59
Last Post: The Tronuo
  Importing Gun sounds epiccheese9 4 3,958 10-10-2012, 19:47
Last Post: epiccheese9
  Bo adding sounds need help! Will thank SamuelGrund 0 2,451 08-30-2012, 14:54
Last Post: SamuelGrund
  SnD bg sounds project paok-atak 8 4,977 05-22-2012, 18:08
Last Post: JariZ
  SP sounds never work (included my sound test mod here) Xzite 7 4,845 04-05-2012, 17:47
Last Post: Xzite
  [Request] Disable ambient map sound Ashween 4 5,442 04-03-2012, 21:43
Last Post: Shckr57

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.