Results 1 to 5 of 5

Thread: Sticky bombs

  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

    Sticky bombs

    Hello, It's me again. I'm coming with another question. I want do samtex grenade (like in mw2). But I don't have any idea how to stick grenade to wall. Can anyone help me?

    Regards, RobsoN.
    "Don't worry if your code doesn't work correctly - if everything worked, you would not work" ~Mosher's right

  2. #2
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts
    I found last time a C4 for CoD2, but it was a long time ago, I need to look up and then I have to change the model

  3. #3
    Private
    Join Date
    Jan 2013
    Location
    Hungary
    Posts
    113
    Thanks
    10
    Thanked 74 Times in 45 Posts
    At first get the grenade entity and monitor the path with bullettrace. If the trace touches a wall, then link the grenade to the position.

    Functions what could maybe useful:
    getEntArray("grenades", "classname");
    linkTo();
    bulletTrace();
    isTouching();

  4. The Following 2 Users Say Thank You to randall For This Useful Post:

    kung foo man (2nd November 2013),RobsoN (2nd November 2013)

  5. #4
    Private First Class RobsoN's Avatar
    Join Date
    Jan 2013
    Location
    /home/cod2/
    Posts
    230
    Thanks
    119
    Thanked 95 Times in 64 Posts
    Ohh thanks! But one more question. How can I recognize grenades (smoke/normal grenade etc.) ? I want to stick only samtex grenades.

    [EDIT]:

    Okay, sorry I didn't check forum for it.
    http://killtube.org/showthread.php?1...getEntArray%28

    Thanks again .
    Last edited by RobsoN; 2nd November 2013 at 10:11.
    "Don't worry if your code doesn't work correctly - if everything worked, you would not work" ~Mosher's right

  6. #5
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    I did sticky bombs a long time ago:

    http://www.xfire.com/videos/42fc08

Posting Permissions

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