[HELP] Destroying 2 Bomb Sites
I'm trying to make a new game mode where you have to destroy both bomb sites. Currently I'm doing preliminary testing, using Infinite Round to prevent the round ending, and a small plugin using fun to give myself a second C4 after the 1st one blows up.
The trouble is when the 1st one explodes and I spawn the 2nd C4 but I can't plant it on the other site, giving me the message that the C4 has to be planted on site. The game seems to disable the site when a C4 has exploded. Is there a way to prevent this or reactivate the site for a second bombing?... |
Re: [HELP] Destroying 2 Bomb Sites
Best bet look at existing plugins like 'Plant Anywhere 2' to see how to do it.
|
Re: [HELP] Destroying 2 Bomb Sites
Quote:
|
Re: [HELP] Destroying 2 Bomb Sites
For these kinds of things, ReGameDLL is your friend. See what happens when the bomb explodes and undo it.
|
Re: [HELP] Destroying 2 Bomb Sites
Quote:
|
Re: [HELP] Destroying 2 Bomb Sites
https://github.com/s1lentq/ReGameDLL...regamedll/dlls
I'm not saying to run regamedll, probably my previous post wasn't clear. You should look at the source code and figure out what happens that blocks the other bombsite, then undo that. I may give it a try, but I can't promise it will be soon. You can start from ShootSatchelCharge function which creates the C4 and C4Think function that's the function for c4 entity thinking. It should have a check for when the bomb should explode and you can go from there, checking what other functions are called and trying to make sense of the code, see what happens when. It may look hard at first, but if you get used to it, it will help you a ton in the future. |
Re: [HELP] Destroying 2 Bomb Sites
I pray you would be patient because, frankly, this is delving into unknown territory for me. So I assume this is C++ and I need an IDE to open it?...
|
Re: [HELP] Destroying 2 Bomb Sites
You can open the file in github and check it, or download it and use any editor.
|
Re: [HELP] Destroying 2 Bomb Sites
PHP Code:
|
Re: [HELP] Destroying 2 Bomb Sites
Quote:
I didn't dig into this, there may be some weird things like some part of the game/client code relying on that log, but that would be kinda silly tbh. |
| All times are GMT -4. The time now is 13:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.