Origin of bomb target
I've been looking around the forums but I don't really understand how to find the origins of both bomb targets on a de map in counter-strike. Could someone show me how?
|
Yes. It's possible but please tell me the purpose so i probably would tell you the better solution.
Anyway here is the answer: Code:
|
I just need the origins of both bombsites. How would i use that to find both the bombsites, that will probably find one of them right? and if i use it again what can i do to stop it from finding the same bomb site again?
|
You should undestand that bomb site isn't just a point.
Basically it's a box. Sometimes it's not just a single box. So that method would be good only in few cases. I can't tell you more because i need more detailed question. If you want a good answer you should tell for what purpose you want to find the origin. |
changing the bomb location to the other bomb site
|
Quote:
Sometimes bomb target contain more than one entity box. Anyway code would be tricky. You need a lot of checks: - how many bomb target entities map contain - which entity belong to which bombsite - is backpack is dropped - is backpack belong to a bombsite - trace destination origin to avoid bomb stuck - maybe even more Maybe i would write you an example later. |
this wouldn't be hard at all to do. Here, I'll script this out, sigh
Code:
put that into your script and use this example to find the original bomb site locations. Code:
and to move the bomb sites put this at the end of your script: Code:
And call that function every second or 2 with this in plugin_init: Code:
And then to fill in those global variables, make a command like this: Code:
make up your own delete bombsite command handler function. make CVARs etc to your pleasure. Requires Cstrike and Engine modules. |
(edit: this is for C4 backpack not the C4 bomb)
No, he mean transfer bomb to another bombsite (edit: but maybe i understand him incorrect). Anyway i done that (still needs a trace though) Just use a stock function c4_backpack_to_another_bombsite() Returned result: Code:
-2: less than two bomb target entity on the mapCode:
|
We were both wrong. After re-reading he wants it do that if u plant the bomb at A it will BOOM teleport to B bombsite. (Don't know why.)
This all gives me an extremely unique idea for a plugin. |
yes thats what i want, when the bomb is planted, move it to the other bomb site. and thats why i didn't explicity say it so no one would take the idea, but i guess its too late...
|
| All times are GMT -4. The time now is 20:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.