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

Hero: U.S. Navy Seal


Post New Thread Reply   
 
Thread Tools Display Modes
The Art of War
Veteran Member
Join Date: Dec 2009
Location: Sweden Rock Festival
Old 05-07-2010 , 05:20   Re: Hero: U.S. Navy Seal
Reply With Quote #11

Quote:
Originally Posted by Fr33m@n View Post
stop saying shit. I don't see amxmod native in...
Okey, sorry then but really...

PHP Code:
register_srvcmd("seal_init""seal_init")
    
shRegHeroInit(gHeroName"seal_init"
Old way of registering the the init

PHP Code:
register_event("ResetHUD""newRound""b")
    
register_event("Damage""seal_damage","b"
Old way of spawn, old way of damage mult, I dont really get it, because he is using BOTH old and new ways to make damage mult lol

PHP Code:
sh_set_hero_dmgmult(gHeroIDpcvarTMPMultCSW_TMP)

public 
seal_damage(id)
{
    if (!
shModActive() || !is_user_alive(id)) return

    new 
damage read_data(2)
    new 
weaponbodypartattacker get_user_attacker(id,weapon,bodypart)
    new 
headshot bodypart == 0

    
if ( attacker <= || attacker SH_MAXSLOTS ) return

    if ( 
gHasSealPower[attacker] && weapon == CSW_TMP && is_user_alive(id)) {
        new 
extraDamage floatround(damage get_cvar_float("seal_tmpmult") - damage)
        if (
extraDamage 0shExtraDamageidattackerextraDamage"tmp"headshot)
    }

Also old natives without underscores like shExtraDamage and shGiveWeapon instead of sh_extra_damage etc

Use Jelles version, its working, 1.2 made and tested.
__________________
The Art of War is offline
FBThane
Junior Member
Join Date: May 2010
Old 05-07-2010 , 08:41   Re: Hero: U.S. Navy Seal
Reply With Quote #12

Quote:
Originally Posted by Jelle View Post
I guess he was thinking of the old method of coding amxx.

Thane, use my version, it is not some mixed shit, updated methods only.

Ok, Thanks
FBThane is offline
The Art of War
Veteran Member
Join Date: Dec 2009
Location: Sweden Rock Festival
Old 05-07-2010 , 10:09   Re: Hero: U.S. Navy Seal
Reply With Quote #13

I dont really know how fucked the damage would be with your version Thane, but if the hero works at all, it will certainly be very fucked. As Jelle said, look at his tutorial, and never use both methods. Check the superheromod.inc in the include folder for how to use the natives if you dint understand what Jelle wrote
__________________
The Art of War is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 05-07-2010 , 18:07   Re: Hero: U.S. Navy Seal
Reply With Quote #14

I actually think that what he did, would apply the damage twice. First using the non-faking way, and the second using the faking way, where damage is added after the real damage is done. I guess it would.

Thane, please delete your version so people do not get confused and download yours. Then we will just have allot of threads and replies to this thread about it not working. And I do not want to tell people to download mine rather than yours.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
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 09:22.


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