Jump to content

Photo

Flashlight Triggers


  • Please log in to reply
83 replies to this topic

#1
WaeV

WaeV

    Firecracker

  • Regular
  • 1,657 posts
  • Gender:Male
Aight, this is a simple tutorial on how to make a flashlight trigger, that is to say an extra weapon for a vehicle, triggered whenever the flashlight button is pressed.

If we look at the dependencies for any vehicle, we will see a pair of effe tags near the top. The second of these is triggered whenever the flashlight button is pressed. Simple!
Posted Image

Swap this reference to [effects/coop teleport] and you'll get the following effect whenever you press 'Q' (or whatever your flashlight is set to).
Posted Image

That's very pretty and all, but we want FIRE AND DESTRUCTION!!! And for that we need projectiles. Import my tag here using Eschaton, and you'll be able to have an effe which spawns projectiles!

Projectile Spawner Tag Download

And there you are! Four proj references mean you can have up to four different projectiles fire per one push of the flashlight. Here's a snapshot of the available references.
Posted Image

Of course, I'm sure the concepts introduced in this tutorial can be used for MANY more things than a simple third trigger, but it's up to you to find them! Happy modding!
Posted Image

Edited by WaeV, 01 October 2011 - 08:11 PM.

Posted Image
____ Flashlight Trigger: [Link] ___ Projectile Spawner: [Link]

#2
Lonesface

Lonesface

    W1NN3R

  • Members
  • 159 posts
  • Gender:Female
nice job waev im sure this will help modders in any way they would wanna spawn things with like the ghost could shoot a brute plasma rifle =]
Posted Image

#3
Kvasir

Kvasir

    Spy

  • Meta Chief
  • 5,818 posts
  • Gender:Male
  • Location:No.
Never knew you could do this. With some investigation in CE, I noticed you can do it from there too. It's labeled as "Integrated light toggle." What could it have been intended for? o.O

/Idiocy



Posted Image


#4
WaeV

WaeV

    Firecracker

  • Regular
  • 1,657 posts
  • Gender:Male
No clue! Perhaps you could turn the headlights on and off in a Halo beta? I use this in my mod Valkrieg pretty extensively - it's basically the main weapon.
Posted Image
____ Flashlight Trigger: [Link] ___ Projectile Spawner: [Link]

#5
{ani} hunter

{ani} hunter

    That dude who just owned you

  • Members
  • 228 posts
  • Gender:Male
  • Location:Ontario, Canada
Nice and simple, thanks. Pretty useless for me though, since I figured it out when you posted 'bout it. I think you should mention what happens if you switch the first [effe] tag too[img]http://www.modhalo.net/public/style_emoticons/custom/XD.gif[/img]
P.S Do you happen to know what that [shdr] tag is for?

*THUK*
I'm no physician, but there appears to be a dagger through my chest. - Richard



#6
WaeV

WaeV

    Firecracker

  • Regular
  • 1,657 posts
  • Gender:Male
Tbh I haven't looked into any of the other tags.
Posted Image
____ Flashlight Trigger: [Link] ___ Projectile Spawner: [Link]

#7
Kvasir

Kvasir

    Spy

  • Meta Chief
  • 5,818 posts
  • Gender:Male
  • Location:No.
I could probably check in CE for another unused effe tag reference.

/Idiocy



Posted Image


#8
v3nture

v3nture

    Lt. Colonel Grade 2

  • Regular
  • 2,185 posts
  • Gender:Male
  • Location:Ontario, Canada
This is pretty cool, and solved an Issue with a mod I was having.
Posted Image
If its hostile, you kill it.

#9
WaeV

WaeV

    Firecracker

  • Regular
  • 1,657 posts
  • Gender:Male
What I'd REALLY like to see is an effect that triggers while the vehicle is driving. Linked with the projectile spawner, that'd be like a weapon that was constantly firing.

Edited by WaeV, 04 February 2010 - 06:45 PM.

Posted Image
____ Flashlight Trigger: [Link] ___ Projectile Spawner: [Link]

#10
{ani} hunter

{ani} hunter

    That dude who just owned you

  • Members
  • 228 posts
  • Gender:Male
  • Location:Ontario, Canada
then maybe you should change one of the [effe] tags in the [foot]?

*THUK*
I'm no physician, but there appears to be a dagger through my chest. - Richard



#11
Kvasir

Kvasir

    Spy

  • Meta Chief
  • 5,818 posts
  • Gender:Male
  • Location:No.
You can also add an attachment in CE. Or you could make a controlled effect, like for instance, the banshee's speed controls the contrails.

/Idiocy



Posted Image


#12
{ani} hunter

{ani} hunter

    That dude who just owned you

  • Members
  • 228 posts
  • Gender:Male
  • Location:Ontario, Canada
Change the contrails into stickysPosted Image

*THUK*
I'm no physician, but there appears to be a dagger through my chest. - Richard



#13
WaeV

WaeV

    Firecracker

  • Regular
  • 1,657 posts
  • Gender:Male
Contrails reference bitmaps, not effects. No?
Posted Image
____ Flashlight Trigger: [Link] ___ Projectile Spawner: [Link]

#14
Kvasir

Kvasir

    Spy

  • Meta Chief
  • 5,818 posts
  • Gender:Male
  • Location:No.
The Banshee has a function that can be changed from a contrail to an effect, I believe.

/Idiocy



Posted Image


#15
mastersync23

mastersync23

    The guy who...syncs?

  • Members
  • 248 posts
  • Gender:Male
  • Location:Australia

The Banshee has a function that can be changed from a contrail to an effect, I believe.


Wow, great tutorial man. I'll be sure to try this. Great job on finding it.

Posted Image


#16
WaeV

WaeV

    Firecracker

  • Regular
  • 1,657 posts
  • Gender:Male
Thanks! But I think you hit the wrong 'reply' button. :P

The Banshee has a function that can be changed from a contrail to an effect, I believe.

Oh? Do you need CE to do that, or can you just swap the [cont] for an [effe]?
Posted Image
____ Flashlight Trigger: [Link] ___ Projectile Spawner: [Link]

#17
Kvasir

Kvasir

    Spy

  • Meta Chief
  • 5,818 posts
  • Gender:Male
  • Location:No.

Oh? Do you need CE to do that, or can you just swap the [cont] for an [effe]?


Well, as far as using CE, you just change the tag type to the one you want (Although there are a limited set) and then you choose the tag file. But I assume if you were using PC, you could still just swap it with an effect tag, and have it work just fine. All you're doing is changing the reference to the tag in the map file that it spawns, so you should be okay as long as you stick with the tags that can be put there.

Here's a screenshot of the attachments/functions area in Guerilla. Theoretically, you should be able to swap it with any of the tags in that open drop down box. Oh, and it will be scaled/controlled by the "x out" bit in the functions area. Not sure if you can access that area in PC, so you have to stick with the default functions I think. So if you were to replace the banshee contrail with a light or sound, it would only play when the contrail would have shown, as it is scaled the same way.
Posted Image

Edited by Kvasir, 05 February 2010 - 03:22 PM.

/Idiocy



Posted Image


#18
WaeV

WaeV

    Firecracker

  • Regular
  • 1,657 posts
  • Gender:Male
Wow, that's really helpful. Thanks, Kvasir!

Edit: Exception error -_O

I swapped [cont] - [vehicles\banshee\banshee wingtip contrail] with [effe] - [effects\coop teleport] and it exceptioned as soon as I went to turn the banshee.

Edited by WaeV, 05 February 2010 - 03:56 PM.

Posted Image
____ Flashlight Trigger: [Link] ___ Projectile Spawner: [Link]

#19
Kvasir

Kvasir

    Spy

  • Meta Chief
  • 5,818 posts
  • Gender:Male
  • Location:No.
Hmmm, I would have thought that would work. :\ Oh well, was worth a try. :)

/Idiocy



Posted Image


#20
Skeezix the Cat

Skeezix the Cat

    jealous virgin

  • Regular
  • 2,779 posts
  • Gender:Male
  • Location:Newburgh, Indiana
Yet another thing that has strangely gone undiscovered for untold millennia. :bow:

Posted Image





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

IPB skins by Skinbox