PDA

View Full Version : Sticky bombs



RobsoN
1st November 2013, 21:17
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.

Loveboy
1st November 2013, 21:35
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

randall
2nd November 2013, 00:05
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();

RobsoN
2nd November 2013, 10:06
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?1616-isThrowingGrenade-function&highlight=getEntArray%28

Thanks again :).

Tally
2nd November 2013, 10:18
I did sticky bombs a long time ago:

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