Raised This Month: $32 Target: $400
 8% 

Bomb Status [ V 1.7 ]


Post New Thread Reply   
 
Thread Tools Display Modes
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-25-2014 , 09:51   Re: Bomb Status [ V 1.2 ]
Reply With Quote #91

Look here, a simple test plugin:
Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <engine> public plugin_init() {         new iTarget = -1     new i         while((iTarget = find_ent_by_class(iTarget, "infodecal")))     {         i++         server_print("Found: %i", iTarget)     }         if(!i)     {         server_print("No infodecal ents")     } }

Code:
de_dust2:No infodecal ents
de_inferno:

Found: 131
Found: 136
Found: 137
Found: 138
Found: 139
Found: 140
Found: 141
Found: 142
Found: 191
I'm using default maps
__________________
HamletEagle is online now
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-25-2014 , 10:45   Re: Bomb Status [ V 1.2 ]
Reply With Quote #92

I've actually tried de_dust2_cz. But you're right, the original one doesn't have infodecal.
__________________
Arkshine is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-25-2014 , 11:11   Re: Bomb Status [ V 1.2 ]
Reply With Quote #93

Then, for me the way of using infodecals seems to be pointless, if it doesn't exists in some maps I don't see a reason to complicate the code. Also the decalindex is always 1 & 0 and the other stuffs I can't rember from my last post. I'm thinking to skip this part of your request and complete the others. What do you think ?
__________________

Last edited by HamletEagle; 12-21-2014 at 07:31.
HamletEagle is online now
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-25-2014 , 11:38   Re: Bomb Status [ V 1.2 ]
Reply With Quote #94

Quote:
Then, for my the way of using infodecals seems to be pointless, if it doesn't exists in some maps I don't see a reason to complicate the code
Right now, you choose randomly where is A and B. "infodecal" is just an helper to figure out the right order on some map. If no present you fallback to random choice. Well, admin will have anyway to check in-game whether order is right or not, so if you're using a menu and you did not tried to get the right order with "infodecal" is not a big deal, it won't change much. "infodecal" is just a bonus to have the proper order from the start, but using a menu where you can reverse with one key, you won't for gain much time. So if you can't get it working, it's ok, this is not the most important anyway (too bad though, could have been welcomed to have a smarter detection, complicating code is not really a valid argument when you can make admin's life easier).
__________________
Arkshine is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-25-2014 , 12:50   Re: Bomb Status [ V 1.2 ]
Reply With Quote #95

So my configuration menu will be like:

Bomb Sites Configuration
Status: Confirmed/Unconfrimed
1. Confirm Bomb Sites ( unavailable if confirmed )
2. Reverse

Reverse will reverse the plugin choose, A will become B and B will become A. This changes will be added to the configuration file immeditalety but also changes when the owner press "Reverse" to avoid re-reading the config file in-game. In the config file will be another column with CONFIRMED/UNCONFIRMED, for the first menu option.

Hope this is enough.
__________________

Last edited by HamletEagle; 10-25-2014 at 12:51.
HamletEagle is online now
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-25-2014 , 13:22   Re: Bomb Status [ V 1.2 ]
Reply With Quote #96

It's okay to first handle 2 bomb sites, you can always extend later if people ask for that, there should not have much maps with more than 2 bomb sites. Having the menu system working comes first. So to start, should be enough.

How are you going to show to admin the current order? Idea is, he should be able to confirm or reverse without moving from spawn, so he doesn't waste time (most of time an admin knows the map).
__________________
Arkshine is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-25-2014 , 13:35   Re: Bomb Status [ V 1.2 ]
Reply With Quote #97

With a third option like teleport me to bomb site, so, in case he doesn't know which bomb site is A and B. I've also considered a beam, but it doesn't really help if he is not near the bombsite.
__________________
HamletEagle is online now
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-25-2014 , 13:43   Re: Bomb Status [ V 1.2 ]
Reply With Quote #98

A beam gives a direction. From any spawns, you know where is A and where is B, especially for default maps. For others maps, a teleport function is handy for sure. Well it doesn't matter what you use, but this should be easy/fast to understand/configure/use. So, take your time and be creative.
__________________

Last edited by Arkshine; 10-25-2014 at 13:44.
Arkshine is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 11-05-2014 , 11:35   Re: Bomb Status [ V 1.2 ]
Reply With Quote #99

Updated, only the code changes are done. I don't have enough time to work on a better config system for now, maybe in the future. If you want, check again the code.

I'm planning to entirely rewrite the topic and add more informations.
__________________

Last edited by HamletEagle; 11-05-2014 at 11:42.
HamletEagle is online now
Old 12-06-2014, 06:53
HamletEagle
This message has been deleted by HamletEagle.
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-01-2015 , 11:18   Re: Bomb Status [ V 1.4 - Huge Update ]
Reply With Quote #100

UPDATED.
Arkshine, please check again the code.
__________________
HamletEagle is online now
Old 01-03-2015, 09:42
HamletEagle
This message has been deleted by HamletEagle.
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode