Raised This Month: $12 Target: $400
 3% 

Mirror Damage


Post New Thread Reply   
 
Thread Tools Display Modes
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 02-12-2005 , 13:47  
Reply With Quote #11

no support via pm
__________________
Github archive for plugins, the repos for the other c++ projects are there to.
EKS is offline
UPA_Brawler
Junior Member
Join Date: Feb 2005
Old 02-12-2005 , 13:49  
Reply With Quote #12

i used the amxxsc thing and it stilll comes up
UPA_Brawler is offline
UPA_Brawler
Junior Member
Join Date: Feb 2005
Old 02-13-2005 , 12:31  
Reply With Quote #13

its still dont work could u please look at ur plugin and see why itas not working for day of defeat
UPA_Brawler is offline
UPA_Brawler
Junior Member
Join Date: Feb 2005
Old 02-13-2005 , 12:35  
Reply With Quote #14

124:59 L 02/13/2005 - 092:47: [AMXX] Invalid event (name "Damage") (plugin "mirror_damage.amxx")
124:59 L 02/13/2005 - 092:47: [AMXX] Native error in "register_event" on line 23 (file "mirror_damage_100.sma")

thats what i get when i redownloaded the amxx plugin from here not the sma
UPA_Brawler is offline
Evaldas
Member
Join Date: Jul 2005
Location: Lithuania
Old 08-31-2005 , 17:03  
Reply With Quote #15

Wonderfull plugin. I have a question to EKS. Is there a way to restore DMG taken by the "atacker"? I know that I can use ATAC, but I like small and usefull plugins, than big ones.

I did some changes here:

if(HP > 0) set_user_health(attacker,(get_user_health(att acker) - damage)) && set_user_health(victim,(get_user_health(victi m) + damage))

But how to do, that dmg woud be restored, even when attacker is dead. Would be grateful for help.
__________________
Evaldas is offline
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 09-01-2005 , 14:56  
Reply With Quote #16

Code:
		
if(is_user_alive(victim))
	set_user_health(id,get_user_health(victim)+damage)
Add this on line 36 or 37, it should work
__________________
Github archive for plugins, the repos for the other c++ projects are there to.
EKS is offline
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 09-01-2005 , 16:57  
Reply With Quote #17

A comment on the add hp thing.. i can see that going out of controll

16 vs 16 people

All people shooting the same guy giving him 1600 hp

If he is any good at cs it is as good as godmode
__________________
My Plugins

Got ??
AssKicR is offline
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 09-01-2005 , 17:33  
Reply With Quote #18

i dont see how that can happen, as im only returning HP taken. But whats the point of Friendly fire if your both doing mirror damage and restoring health
__________________
Github archive for plugins, the repos for the other c++ projects are there to.
EKS is offline
Seather
Member
Join Date: Oct 2004
Old 12-13-2005 , 06:55  
Reply With Quote #19

register_forward(FM_TraceLine... method

Modules required: fakemeta,fun,engine

*seather finds and slightly extends XxAvalanchexX's example from http://www.amxmodx.org/doc/source/fu...eta/set_tr.htm and finds victim by looking at Cheap_Suit's knife zone http://forums.alliedmods.net/showthread.php?t=20396

victim shouldn't even be touched, no chance of victim death, no loss of victim armor

cvar: amx_mirror_damage , default = 1

edit:12/17, brought back eks code to handle nades and other non instant bullets which the traceline misses, and refill lost hp and armor

[done]todo when i have time: only traceline while +attack[2], so that when you look at people on your team you don't see your own name.

[sort of fixed?]bug: restoring victim hp messed up, hp not restored, some have more than 100 hp

edit:12/18, cleaned up some stuff, fixed some possible bugs, added +attack[2] detection that i have seen in PaintLancer's http://forums.alliedmods.net/showthread.php?p=66556

edit:12/18, #2, more small bug fixes and misc tweaks

todo: revive dead team killed players (in cs killed by HE)
Attached Files
File Type: sma Get Plugin or Get Source (sea_mirror_damage.sma - 1097 views - 2.9 KB)
Seather is offline
DEV
Member
Join Date: Dec 2005
Old 01-05-2006 , 10:35  
Reply With Quote #20

bad load for the sea_mirror_damage.amxx.

i had the original working fine.

Forgot that you need 2 extra modules uncommented for this one

problems solved
DEV is offline
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 11:48.


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