Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Spray (flat model)

  1. #1
    Private First Class RobsoN's Avatar
    Join Date
    Jan 2013
    Location
    /home/cod2/
    Posts
    230
    Thanks
    119
    Thanked 95 Times in 64 Posts

    Smile Spray (flat model)

    Hello Developers,

    I'm interested about "spray idea" for my new server. I think, I just need flat model and image for it, then just spawn model by script.
    1.Is It possible?
    2.Is there anyother way?
    3.Have anyone flat model, or can someone do it for me(i think it dont take much time - I am not modeler btw).

    Thanks, RobsoN.

  2. #2
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Such a xmodel wouldn't "bend" over edges, so i would prefer you use fx-effect (like blood).
    timescale 0.01

  3. #3
    Private First Class RobsoN's Avatar
    Join Date
    Jan 2013
    Location
    /home/cod2/
    Posts
    230
    Thanks
    119
    Thanked 95 Times in 64 Posts
    But for FX i need xmodel? Or only texture image?

    Thanks for reply kung foo man .

  4. #4
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    You need one .efx-file for every logo and then execute it with playfx(). I've never did it myself, just can tell you how it should work technically.

    (There is a thanks-button below each post ;D)
    timescale 0.01

  5. #5
    Private First Class RobsoN's Avatar
    Join Date
    Jan 2013
    Location
    /home/cod2/
    Posts
    230
    Thanks
    119
    Thanked 95 Times in 64 Posts
    The problem is - how build fx. Im not good at that.

  6. #6
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    You need to install CoD2 Mod Tools, then you find CoD2_EffectsEd.exe in /bin/-folder of your CoD2-Installation.

    How you can start:
    - load blood.efx from some gore-mod into CoD2_EffectsEd.exe
    - change some settings till its fitting (e.g. decrease shaders to only 1 - your later logo)
    - swap the shader to your logo
    - call the generated .efx with playfx() where you need it


    PHP Code:
    playfx( <effect id >, <position of effect>, <forward vector>, <up vector> ) 
    You might not be good at that, but you grow with your problems. Just keep trying, learning by doing.
    timescale 0.01

  7. The Following User Says Thank You to kung foo man For This Useful Post:

    RobsoN (12th February 2013)

  8. #7
    Private First Class RobsoN's Avatar
    Join Date
    Jan 2013
    Location
    /home/cod2/
    Posts
    230
    Thanks
    119
    Thanked 95 Times in 64 Posts
    I don't know why but the effect is rotating of player's eye.http://www.youtube.com/watch?v=geXxw...ature=youtu.be

  9. #8
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    For me it looks like a HUD, can you upload your test.iwd, so ppl can test?
    timescale 0.01

  10. #9
    Private First Class RobsoN's Avatar
    Join Date
    Jan 2013
    Location
    /home/cod2/
    Posts
    230
    Thanks
    119
    Thanked 95 Times in 64 Posts
    Ofc,

    fx spawn code:

    PHP Code:
    self playFx(level.robsonTestEffectself.origin); 
    fx precache:

    PHP Code:
    level.robsonTestEffect loadfx("fx/robson.efx"); 
    Attached Files Attached Files

  11. #10
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    i told you on xf about the 2 vectors and to read the docs on the playfx function.

    Please do so.

    Please also note the 2 vectors i talked about. They might be a tiny bit important when i notice them (twice)!

  12. The Following User Says Thank You to IzNoGoD For This Useful Post:

    kung foo man (13th February 2013)

Posting Permissions

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