Jump to content

A trip mine laser


Langerd

Recommended Posts

Posted

Ok nevermind about first question. I changed the colour. Now what should i do in efx file to make the starting point of laser lower.

 

//

// glow
Line
{
    name    line1

    spawnflags    cheapOrg2Calc

    size
    {
        start    1.75    2.5
    }

    rgb
    {
        start 0.3 0.0 0.0
    }

    shaders
    [
        gfx/misc/whiteLine2
    ]
}

// hotter core
Line
{
    name    line2

    spawnflags    cheapOrg2Calc

    size
    {
        start    0.15    0.27
    }

    rgb
    {
        start 0.3 0.05 0.05
    }

    shaders
    [
        gfx/misc/whiteLine2
    ]
}

// blue glow
Particle
{
    size
    {
        start    1.0    1.5
    }
    
    rgb
    {
        start 3    0.1    0.1    
    }

    rotation    0 360


    shaders
    [
        gfx/effects/whiteFlare
    ]
}

// whiter core
Particle
{
    size
    {
        start    0.5    0.8
    }
    
    rgb
    {
        start 3    0.1    0.1    
    }
    
    alpha
    {
        start 0.1    0.1
    }

    rotation    0 360


    shaders
    [
        gfx/effects/whiteFlare
    ]
}

 

Posted

Yes changing the effect will likely change the visual origin of the effect, but I suspect damage is calculated hardcoded based on model tag e.t.c. Especially as there is no dmg or damage code in that .efx

Posted

Hmm should i change a *flash tag? Or should i lower the *weapon tag?

Yes, I meant the *flash tag.

 

Have you tried to move the tag a little bit, so it's closer

to the model?

Posted

Yep ... And it doesnt change anything. The *flash tag in for example  e11 rifle is a tag in glm that creates a shot from the gun ( In third person mode not first person because first person is using md3 model not glm). So i dont know ...

When i moved model it worked. But the model was flying in the air 10cm above the floor.

The only one way is i can make it bigger or create effect on the model but this is too much work... (sry for english i am polish)

Posted

The effect is handled differently between SP and MP.

For SP, you'll want to modify that effect, and nothing further is needed. The game moves the end-point of the line segment (do NOT change the name of this segment!!) so that it hits the correct spot. All you need to do to make it red is change the RGB or the shader of that line.

For MP, you'll have to modify a shader that it uses (I think gfx/effects/whiteline or gfx/misc/whiteline). Unfortunately, changing the color of this shader will change almost everything else that uses gfx/effects/whiteline - and there are quite a few things that use it.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...