Raised This Month: $ Target: $400
 0% 

Armour Absence Fix v1.0.1


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   Hawk552 (427)
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 05-25-2007 , 15:01   Armour Absence Fix v1.0.1
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (armour_absence_fix.sma - 2407 views - 1.6 KB)
__________________
my modest stuff: AXN 1.6.1 | plugins | bsp2csdm

Last edited by Simon Logic; 01-07-2008 at 17:40. Reason: plugin updated
Simon Logic is offline
Send a message via Skype™ to Simon Logic
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 05-25-2007 , 15:27   Re: Armour Absence Fix
Reply With Quote #2

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

Gj!

PS: we should cooperate *gg*
__________________
regalis is offline
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 05-25-2007 , 18:33   Re: Armour Absence Fix
Reply With Quote #3

Quote:
Originally Posted by regalis View Post
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.
__________________
my modest stuff: AXN 1.6.1 | plugins | bsp2csdm
Simon Logic is offline
Send a message via Skype™ to Simon Logic
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 05-25-2007 , 19:53   Re: Armour Absence Fix
Reply With Quote #4

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
__________________
regalis is offline
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 05-26-2007 , 08:30   Re: Armour Absence Fix
Reply With Quote #5

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'.
__________________
my modest stuff: AXN 1.6.1 | plugins | bsp2csdm

Last edited by Simon Logic; 05-26-2007 at 08:41.
Simon Logic is offline
Send a message via Skype™ to Simon Logic
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 05-26-2007 , 13:53   Re: Armour Absence Fix
Reply With Quote #6

Isn't this only a problem if the user has no armor to begin with?
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 05-28-2007 , 05:54   Re: Armour Absence Fix
Reply With Quote #7

Right. Anyway plugin considers this sutiation and does nothing if player has true armor already.
__________________
my modest stuff: AXN 1.6.1 | plugins | bsp2csdm
Simon Logic is offline
Send a message via Skype™ to Simon Logic
Mini_Midget
Veteran Member
Join Date: Jan 2006
Old 01-04-2008 , 06:01   Re: Armour Absence Fix
Reply With Quote #8

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)
Mini_Midget is offline
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 01-07-2008 , 17:41   Re: Armour Absence Fix v1.0.1
Reply With Quote #9

Yep, it was a rare error (occured twice on my 9slot 24h CSDM server during 3 moths). Fixed.
__________________
my modest stuff: AXN 1.6.1 | plugins | bsp2csdm
Simon Logic is offline
Send a message via Skype™ to Simon Logic
Reply


Thread Tools
Display Modes

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 08:02.


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