Raised This Month: $ Target: $400
 0% 

Hostage Protection[ V 1.8 ]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-10-2014 , 10:48   Re: Hostage Protection[ V 1.4 ]
Reply With Quote #1

Quote:
Originally Posted by Arkshine View Post
Why do you start second ifind_ent_by_class from iEnt[ 0 ], what if entity is defined before?
You should use equali ; it's possible someone changes manually map and inclufing uppercase letters.
server_cmd can format a string for your information.
Code fixed.
__________________
HamletEagle is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-15-2014 , 09:05   Re: Hostage Protection[ V 1.6 ]
Reply With Quote #2

  • Why the hell are you checking for cs_assault map? If it's because there are not such entities checked before, you can just check if there are hostages hostage_entity.
    Also you can take in count monster_scientist which is basically the same. You could do something like:
    Code:
        new const hostageClassnames[][] = { "func_hostage_rescue", "info_hostage_rescue", "hostage_entity", "monster_entity" };         for (new i = 0; i < sizeof hostageClassnames;  ++i)     {         if (find_ent_by_class(-1, hostageClassnames[i]))         {             return;         }     }         // Pause, fail, whatever.

    With AMXX 1.8.3
    Code:
        if (!( get_map_objectives() & MapObjective_Hostage))     [         // Pause, fail, whatever.     }
  • iInflictor == iAttacker ; I don't think you should do that, an hostage could be hurt with something else, like a projectile.
  • In TakeDamage, your return HAM_SUPERCEDE should be inside first check.
  • hp_status doesn't exist, make sure you update your first post.
  • Add support for pause/unpause plugin.
  • Well, even if one sentence, multilingual could be welcomed.

Random feature suggestion: you could an option to make an hostage immunized against all kind of damage. This way, you would just need to hook hostage spawn, and altering setting pev->takedamage to DAMAGE_NO, then you would not need to hook TakeDamage/TraceAttack forwards.
Some people may want to deal damage but not enough to kill them, basically, letting the blood effect and such done in TraceAttack (not blocking this) but blocking damage in TakeDamage.
Well, just some random ideas.
__________________
Arkshine is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-15-2014 , 11:42   Re: Hostage Protection[ V 1.7 ]
Reply With Quote #3

Hehe, done. About your features suggestions, I will do them in the weekend, for now I'm busy with school.
__________________
HamletEagle is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-15-2014 , 12:08   Re: Hostage Protection[ V 1.7 ]
Reply With Quote #4

The phrase, I was speaking about server_cmd( "amx_ban #%i %i ^"you are not allowed to kill hostages^"" because it's related a player. The sentence in set_fail_state doesn't really matter as that's something onyl admin will see (but it's okay of course to translate it).
__________________
Arkshine is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-15-2014 , 12:39   Re: Hostage Protection[ V 1.7 ]
Reply With Quote #5

Done.
__________________
HamletEagle is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-16-2014 , 13:08   Re: Hostage Protection[ V 1.7 ]
Reply With Quote #6

Updated with a new feature.
__________________
HamletEagle is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-16-2014 , 13:53   Re: Hostage Protection[ V 1.7 ]
Reply With Quote #7

I'm not sure you uploaded the right version.

CHostage_Spawn is not used.
__________________

Last edited by Arkshine; 10-16-2014 at 13:53.
Arkshine is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-16-2014 , 14:00   Re: Hostage Protection[ V 1.7 ]
Reply With Quote #8

Oops, you are right. Fixed.
__________________

Last edited by HamletEagle; 10-16-2014 at 14:01.
HamletEagle is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-16-2014 , 16:59   Re: Hostage Protection[ V 1.7 ]
Reply With Quote #9

Well, I guess it's enough.
Though, I would appreciate you put what does the plugin/cvars in your plugin.

Approved.



[EDIT] By the way
Code:
[fr]
HP_FAILPLUGIN = Plugin mis en pause, ce n'est pas une map avec otages.
HP_NOTALLOWED = Tu n'es pas autorisé à tuer des otages
__________________

Last edited by Arkshine; 10-16-2014 at 17:05.
Arkshine is offline
ACM1PT
Member
Join Date: Feb 2014
Location: Argentina
Old 10-16-2014 , 21:24   Re: Hostage Protection[ V 1.7 ]
Reply With Quote #10

Good job

Code:
[es]
HP_FAILPLUGIN = El plugin fue desactivado, este mapa no contiene rehenes.
HP_NOTALLOWED = No podes matar a un reheen.
ACM1PT is offline
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 19:54.


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