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.
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
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
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();
kung foo man (2nd November 2013),RobsoN (2nd November 2013)
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 09:11.
"Don't worry if your code doesn't work correctly - if everything worked, you would not work" ~Mosher's right
I did sticky bombs a long time ago:
http://www.xfire.com/videos/42fc08