Thread: [9mmhandgun] Silencer added.

Results 1 to 14 of 14
  1. #1
    Registered User cSMG's Avatar
    Join Date
    Apr 2006
    Location
    Frozen Wastes of Canadia
    Posts
    1,548

    [9mmhandgun] Silencer added.


    Originally, VALVe wanted a silencer on the 9mmhandgun. The submodel for it is still there, so I put it back on. I also put the silencer onto the p_9mmhandgun from the w_silencer model.

    What the hell are you waiting for? Click the download link!

    Edit: pic uploaded
    Attached Files Attached Files
    Last edited by cSMG; 06-05-2007 at 11:48 PM.

  2. #2
    d-|-b o.O
    Join Date
    Mar 2004
    Posts
    1,001

    Re: [9mmhandgun] Silencer added.

    you should move the sprite attachment to the end of the silencer and not the glock
    --Sven co-op Commando team journal--
    Mission: Failed.
    Location: Ravenholm.
    Situation analisys: EXTREMELY hostile.
    -Distress call: Connecting...Calling...Sending...Main base out of range...Re-sending to all bases...awaiting response...
    No response...

  3. #3
    Registered User cSMG's Avatar
    Join Date
    Apr 2006
    Location
    Frozen Wastes of Canadia
    Posts
    1,548

    Re: [9mmhandgun] Silencer added.

    Yeah, I know. But I don't know what co-ordinates to move it to.

  4. #4
    Registered User Robootto's Avatar
    Join Date
    Jun 2005
    Location
    Finland
    Posts
    428

    Re: [9mmhandgun] Silencer added.

    Looks like shiny
    cool

  5. #5
    Registered User cSMG's Avatar
    Join Date
    Apr 2006
    Location
    Frozen Wastes of Canadia
    Posts
    1,548

    Re: [9mmhandgun] Silencer added.

    Okay, so I there is a thing in the QC file that controls attachments for the models. There are three separate numbers that I'm guessing are X Y Z axis. What values should I enter in the QC file to change the location of the sprite so that it ends up at the end of the silencer and not the glock?

  6. #6
    d-|-b o.O
    Join Date
    Mar 2004
    Posts
    1,001

    Re: [9mmhandgun] Silencer added.

    check with milkshape or any other program the x y z position of the selected vertex or mouse, that should do it.
    --Sven co-op Commando team journal--
    Mission: Failed.
    Location: Ravenholm.
    Situation analisys: EXTREMELY hostile.
    -Distress call: Connecting...Calling...Sending...Main base out of range...Re-sending to all bases...awaiting response...
    No response...

  7. #7
    Retired BlueFeena's Avatar
    Join Date
    Jun 2004
    Posts
    2,067

    Re: [9mmhandgun] Silencer added.

    I thought those sprites were generated at specific bone joints? If I remember correctly, there is a joint at the tip of the barrel, which is where the flash sprite appears when the player fires the weapon -- for animation purposes, it is pretty much useless. (Check with that though -- back things up before you start playing around with animations.) Try moving the joint to the tip of the silencer -- bare in mind this may cause animation issues! Be prepared to do a little... fudging.

    At least, that's my guess.

  8. #8
    d-|-b o.O
    Join Date
    Mar 2004
    Posts
    1,001

    Re: [9mmhandgun] Silencer added.

    or just wait till 3.5 and tell the glock to use a certain sprite that in fact is an additive black square that in game appears as nothing.
    --Sven co-op Commando team journal--
    Mission: Failed.
    Location: Ravenholm.
    Situation analisys: EXTREMELY hostile.
    -Distress call: Connecting...Calling...Sending...Main base out of range...Re-sending to all bases...awaiting response...
    No response...

  9. #9
    Developer toadie's Avatar
    Join Date
    Feb 2003
    Location
    Australia
    Posts
    347

    Re: [9mmhandgun] Silencer added.

    Quote Originally Posted by G.Ballblue
    I thought those sprites were generated at specific bone joints? If I remember correctly, there is a joint at the tip of the barrel, which is where the flash sprite appears when the player fires the weapon -- for animation purposes, it is pretty much useless. (Check with that though -- back things up before you start playing around with animations.) Try moving the joint to the tip of the silencer -- bare in mind this may cause animation issues! Be prepared to do a little... fudging.

    At least, that's my guess.

    Well you're wrong. Sprites are generated from attachments which are for all intents and purposes attachments to bones. The point at which the attachment is made can be (and usually is) offset from a bone.
    The QC code for it is
    Code:
    $attachment <number> "<bone>" <X offset> <Y offset> <Z offset>
    For example
    Code:
    $attachment 0 "main" 13.000000 0 000000
    X Y Z are the bone offsets, and they are local to the bone orientation, not the world orientation. So basically, take a look at the bone you're attaching to , do a rough measurement, then trial and error until you find the spot that works best.

    This has been a toadie Quick-tutorial on Attachments

  10. #10
    Registered User cSMG's Avatar
    Join Date
    Apr 2006
    Location
    Frozen Wastes of Canadia
    Posts
    1,548

    Re: [9mmhandgun] Silencer added.

    Thanks Gonna try that out as soon as my homework is done

  11. #11
    Retired BlueFeena's Avatar
    Join Date
    Jun 2004
    Posts
    2,067

    Re: [9mmhandgun] Silencer added.

    Quote Originally Posted by toadie
    X Y Z are the bone offsets, and they are local to the bone orientation, not the world orientation. So basically, take a look at the bone you're attaching to , do a rough measurement, then trial and error until you find the spot that works best.
    Ah, alrighty. Good stuff, then

  12. #12
    Registered User
    Join Date
    Jul 2003
    Posts
    1,145

    Re: [9mmhandgun] Silencer added.

    Sorry to spoil the fun, but the whole point of a suppressor is so that there is NO muzzle flash... anyway don't let that stop you from learning how to mess with the qc file.

  13. #13
    Registered User cSMG's Avatar
    Join Date
    Apr 2006
    Location
    Frozen Wastes of Canadia
    Posts
    1,548

    Re: [9mmhandgun] Silencer added.

    I tried modifying the sprite attachment, but it just fucks up the reload animation

    The sprite isn't even that noticeable anyway.

  14. #14
    Bird is the word! Ray Stanz's Avatar
    Join Date
    Aug 2005
    Location
    OpenGL
    Posts
    811

    Re: [9mmhandgun] Silencer added.

    The problem with the sprite may be solved by editing the 9mmhandgun mdl that comes with the half-life sdk. It has the mds source files you can edit + the 3Dmax mdl sources(!!! ). Maybe try this it shouldn't be that much more work to do than you did before with the silencer that was "hidden" in the mdl file already.

Posting Permissions

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