Results 1 to 6 of 6

Thread: Trail Effect

  1. #1

    Default Trail Effect

    Time ago I saw this trail effect in FAKK2 and American McGee's Alice (both games uses id Tech 3 engine)
    And I wanted to try it in mohaa.

    So, looking the Client Game Module Classes (tempmodels documentation) says:

    Code:
    trail( String shader, String startTag, String endTag, Float life )
        Set the tempmodel to have a swipe that follows it
    I'm not sure if I was doing something wrong, but is seems like the "trail" command is broken. I only got 2 results when I try to use it
    1- It does nothing.
    2- The game crashes.


    Fortunately, there is another command called swipeon/swipeoff, (for sword swipe effects) that does almost the same thing.
    Client Game Module Classes says:
    Code:
    swipeon( String shader, String startTagName, Float endTagName, Float life )
        Signal the start of a swipe from the current tag
    
    swipeoff
        Signal the end of a swipe
    So yes, it is possible to make a trail effect in mohaa. I've never seen it being used before, but the 'swipeon' command is there.
    You just need a model with at least 2 bones, a nice texture (the texture will look stretched, not tiled) and the swipeon command.
    Most Swords models in Fakk2 have this effect, you can take a look to those models to see how the 'swipeon' command is used.

    I'm also posting this "Rainbow Trail" test model.
    Zappa_trail_test.pk3
    A simple "dummy model" that generates a Rainbow Trail effect.

    It looks like in this video:




    And another video of the trail effect used in a "Pipe Bomb" model from Left 4 Dead 2


  2. #2
    Client Beta Testers Appelpitje's Avatar
    Join Date
    Jan 2012
    Location
    Belgium
    Posts
    571

    Default

    Very nice!

  3. #3
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,603

    Default

    That's awesome dude!
    Really like it.

  4. #4
    Administrator James's Avatar
    Join Date
    May 2010
    Location
    on the intraweb
    Posts
    3,180

    Default

    Nice job man! I found similar mods in the past, but I don't think they used trace like in your mod. Nice find and examples man! I haven't looked at the pk3, but is this server or clientside? Can the trail be "exploited" in a way to make it nodepthtest clientside so users can use that as some form of a wallhack? Because if so, that could pose an issue.

  5. #5

    Default

    Quote Originally Posted by James View Post
    is this server or clientside?
    Clientside
    Quote Originally Posted by James View Post
    Can the trail be "exploited" in a way to make it nodepthtest clientside so users can use that as some form of a wallhack? Because if so, that could pose an issue.
    It can, just like any other shader used in a playermodel.
    But, tempmodels are considered part of the entity that generates them, so the Reborn anti-wallhack system will also block them.

  6. #6
    Administrator James's Avatar
    Join Date
    May 2010
    Location
    on the intraweb
    Posts
    3,180

    Default

    Awesome!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •