Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RPG Projectile Based
2013-12-16, 01:04 PM,
RE: RPG Projectile Based
I think the reason why grenades don't explode is the same reason why when bots throw grenades they don't explode. They just stick in the ground and disappear. It seems like there is some part of the code that I can't find that controls when a grenade explodes, adding a GrenadeEnt or a derivation of GrenadeEnt and throwing it doesn't seem to do the trick itself....

[Image: name_zps459dc421.gif]
[Image: cooltext1206791925_zps58ab60b5.gif]

"C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do it blows your whole leg off." - Bjarne Stroustrup
Post Reply Quote this message in a reply
2013-12-19, 07:44 AM,
RE: RPG Projectile Based
Some stuff bout the nades: I really dont like the way grenades are implemented. I wanted to create an additional weapon once (C4) by copying and modifying the grenade code, bit after some hours fixing forgotten references and the resulting 0pointers I gave up. I know, there is no reallly easy way, but currently its all a bit confusing.
PS: havent looked at it yet, but do you know how RE does the nade stuff? Remeber they even have mines!!!

The C Programming Language: combines the flexibility of assembly language with the power of assembly language.
Post Reply Quote this message in a reply

Forum Jump: