Announcement

Collapse
No announcement yet.

Help with event light_lightning.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help with event light_lightning.

    Hi all, i am curious on how to add lightning effects that could be used such as event_lightning, the same effect the killed the shareware boss.

    wanted to add a lightning trap that would kill the player on quad ( http://quakeone.com/forums/quake-mod...are-realm.html ) if the trap was triggered, but instead of adding rods that would need to be triggered or lowered as in the shareware boss of quake, it wouldn't be necessary to be lowered and thus wouldn't move, I've tried info_notnull no luck, I've also tried func_wall still no luck, wut do
    I am like a stray dog, lost in between what I do and what I should do.
    But sometimes, all you need is Imagination.


  • #2
    There are more parameters than simply adding the event_lightning entities. The function looks for the positions of two doors as well.

    Check out the source code file "boss.qc", it has the functions for the event_lightning entity. Here's a link:

    Inside3D - Quake Community - I only had one officer Mr. Keg

    Also download the .map file for E1M7 and look at how id software linked the lightning entities:

    http://planetquake.gamespy.com/View.....Detail&id=343

    Here's a link on an explanation of how the entities are used.

    event_lightning - Quake Wiki

    The function looks to see if the two doors are both at their bottom state ("STATE_BOTTOM"), so I imagine you'd have to add two doors, trigger them upon spawning of the map (maybe one big trigger that is tripped by anyone entering the map, only triggers once, and set the doors to never return) and be sure the doors "open" so that they are exactly horizontal in plane.

    It also looks like the event_lightning entities have to have a targetname of "lightning." I'm just getting all of this from the qc file I linked to. You'll have to play around with it a bit.
    Last edited by Dutch; 04-29-2014, 10:49 PM.
    'Replacement Player Models' Project

    Comment


    • #3
      its very much a special entity used only for e1m7.
      its use on other maps is limited...
      it doesn't do any damage, and directly kills/hurts cthon if he's around (the poor guy only has about 3 health).
      Some Game Thing

      Comment


      • #4
        the poor guy only has about 3 health
        Lol.

        @Shambler: it would probably be easier and more practical to make your own lightning damage entity upon triggering, like a combo of the nail trap entity and the thunderbolt fire function, instead of messing with a specialized function. I've only seen it done in other custom maps for Cthon, using the same pillar concept.

        You have all these cool ideas to add to your maps but it seems like you're really trying to stay away from QC. I think you should make a small mod to go with your map pack. So far you've wanted to add ladders, custom models, lightning traps, etc. Everything you've wanted to do so far is fairly simple once you get a feel for it.
        'Replacement Player Models' Project

        Comment

        Working...
        X