Proper explosion dammage
Hey, I need help making explosion damage. Not just some generic damage method found through out these forums. I'm trying to make a serious game play plugin for team fortress classic that adds new unique class weapons. Could someone give me an example of how to make explosion damage that wont count as a suicide death and wont hurt teammates?
[Edit]Need some help here. Why is everyone ignoring this post. I see everyone elses posts in this help forum today are getting answered as I type this so why is this one getting skipped? |
Re: Proper explosion dammage
This is a fake bomb code, maybe you can see how it's done?
PHP Code:
|
Re: Proper explosion dammage
Not sure if it's gonna count as suicide or team kill but you can easily test it.
http://forums.alliedmods.net/showthread.php?t=142412 |
Re: Proper explosion dammage
PHP Code:
|
Re: Proper explosion dammage
Cstrike isn't required in the code above.
You can safely remove it. |
Re: Proper explosion dammage
Ok I'm getting compiler errors with that code.
Quote:
PHP Code:
Quote:
PHP Code:
|
Re: Proper explosion dammage
Quote:
Try PHP Code:
|
Re: Proper explosion dammage
The plugin above is not entirely what you're looking for. It provides an example for the explosion itself and the damage it deals, however it is also managing the concept of having a fake bomb. The code you're having problems with is not needed in your case because it is related to that concept.
The only thing you should be taking from that is code within ExplodeFakeC4(). The planting function has little to no involvement with your new weapons idea. |
Re: Proper explosion dammage
Ok that fix that error and a few others but now theres yet an other compiler error saying this is an empty statement.
PHP Code:
PHP Code:
|
Re: Proper explosion dammage
You don't need either of those lines.
Like I said, you only need the code snippets used within ExplodeFakeC4(). |
All times are GMT -4. The time now is 17:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.