AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Armour Absence Fix v1.0.1 (https://forums.alliedmods.net/showthread.php?t=55591)

Simon Logic 05-25-2007 14:01

Armour Absence Fix v1.0.1
 
1 Attachment(s)
Info:
Under CS when a player (who started to play round without any armor) grabs an item_battery entity (armor pack) or uses func_recharge entity (wall H.E.V. suit charger) he does not get an actual armor because player's special flag is not set. This armor will never be considered on damage. This plugin fixes it.

Hints when to use it:
* on maps which contain built-in item_battery and/or func_recharge entities
* with CSDM when Item Mode enabled
* with other plugins which dynamically add entities giving an armour to players

Requirements:
* CS/CZ mod
* AMX/X 1.7x or higher
* CStrike module

History:
1.0.1 [2008-01-08]
! rare run-time error fix (i hope)
1.0.0 [2007-05-24]
* first public release

regalis 05-25-2007 14:27

Re: Armour Absence Fix
 
Interesting...0o
Don't even know that this PlayerFlag exists...
Where do you got the idea to code this? *smile*

Gj! :up:

PS: we should cooperate *gg*

Simon Logic 05-25-2007 17:33

Re: Armour Absence Fix
 
Quote:

Originally Posted by regalis (Post 480498)
Where do you got the idea to code this?

Well, originally it was a fix for unofficial version of CSDM 2.1e within csdm_itemmode.sma. Just realized that this bug has nothing to do with CSDM core.

regalis 05-25-2007 18:53

Re: Armour Absence Fix
 
I ask because i made a plugin with "wall H.E.V. suit charger" and Medkits...0o
Now that i know that the charged armor isn't realy armor i will build this in my plugin.
I hope you are satisfied with proper credits!? :)

greetz regalis

Simon Logic 05-26-2007 07:30

Re: Armour Absence Fix
 
You're free to include code from external plugins. It's open source. The only thing i worry is an approver MAY think that this plugin is redundant now.

PS. There is no mistake in 'Armour' word. I put it into the topic being fully sensible. 'Armor' is the U.S. simplification of 'Armour'.

vittu 05-26-2007 12:53

Re: Armour Absence Fix
 
Isn't this only a problem if the user has no armor to begin with?

Simon Logic 05-28-2007 04:54

Re: Armour Absence Fix
 
Right. Anyway plugin considers this sutiation and does nothing if player has true armor already.

Mini_Midget 01-04-2008 05:01

Re: Armour Absence Fix
 
Getting a runtime error with this.
Code:

L 01/03/2008 - 22:37:03: [CSTRIKE] Invalid player 11
L 01/03/2008 - 22:37:03: [AMXX] Displaying debug trace (plugin "armour_absence_fix.amxx")
L 01/03/2008 - 22:37:03: [AMXX] Run time error 10: native error (native "cs_get_user_armor")
L 01/03/2008 - 22:37:03: [AMXX]    [0] 16390.attach::onGotArmor (line 54)


Simon Logic 01-07-2008 16:41

Re: Armour Absence Fix v1.0.1
 
Yep, it was a rare error (occured twice on my 9slot 24h CSDM server during 3 moths). Fixed.


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

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