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

Hero: Wonder Woman (AssKicR)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 12-30-2010 , 18:48   Hero: Wonder Woman (AssKicR)
Reply With Quote #1

Wonder Woman v1.3

Description
Lasso - Catch enemies with your lasso


http://en.wikipedia.org/wiki/Wonder_Woman

shconfig.cfg CVARS
Code:
//Wonder Woman
wonderwoman_level 0
wonderwoman_cooldown 45      //# of seconds for cooldown between use (Default 45)
wonderwoman_searchtime 45    //# of seconds to search for a victim when key is pressed (Default 45)
wonderwoman_entangletime 10  //# of seconds the victim is stunned (Default 10)

**SuperHero Mod 1.2.0.14 & up ONLY**

defines - to change edit in sma and recompile
Code:
// Comment out to not block victim's key powers when she is stunned
#define BLOCK_KEY_POWERS
Attached Files
File Type: sma Get Plugin or Get Source (sh_wonderwoman.sma - 1171 views - 9.6 KB)

Last edited by Fr33m@n; 01-12-2011 at 12:47.
Fr33m@n is offline
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 12-30-2010 , 18:53   Re: Hero: Wonder Woman (AssKicR)
Reply With Quote #2

A full rework, the last one had several issues and the code was a bit messy.
So i cleaned up the code and recoded it using wc3ft entangle roots and Electro as a base.
Now Wonder Woman also block the use of key powers.

If you want a version without this block, tell it.

Last edited by Fr33m@n; 12-30-2010 at 18:59.
Fr33m@n is offline
jtpizzalover
Senior Member
Join Date: Dec 2005
Location: Left
Old 12-31-2010 , 01:13   Re: Hero: Wonder Woman (AssKicR)
Reply With Quote #3

If you have an optional version, you should combine them perhaps through a define.
__________________
jtpizzalover is offline
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 12-31-2010 , 05:36   Re: Hero: Wonder Woman (AssKicR)
Reply With Quote #4

k i don't have an optional version, i can do it, let's stick with define.

Last edited by Fr33m@n; 12-31-2010 at 05:39.
Fr33m@n is offline
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 12-31-2010 , 05:57   Re: Hero: Wonder Woman (AssKicR)
Reply With Quote #5

Awesome, thanks a lot!
__________________
Jelle (1): I LOVE YOU
Jelle (1): Yeah. omg you are so awesome!
--------------
Jelle (1): You know when a poo is about to exit but it is too big?
Jelle (1): God my ass still hurts
Exploited is offline
FucKYoU
Junior Member
Join Date: Dec 2010
Old 12-31-2010 , 06:27   Re: Hero: Wonder Woman (AssKicR)
Reply With Quote #6

funny idea
__________________
http://forums.alliedmods.net/signaturepics/sigpic100833_6.gif
FucKYoU is offline
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 12-31-2010 , 08:12   Re: Hero: Wonder Woman (AssKicR)
Reply With Quote #7

Quote:
Originally Posted by jtpizzalover View Post
If you have an optional version, you should combine them perhaps through a define.
Done.
Fr33m@n is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 01-03-2011 , 18:29   Re: Hero: Wonder Woman (AssKicR)
Reply With Quote #8

Change those "else if"s to switch for optimization.

Code:
WonderWoman_EntangleEffect(id, origin[3], Float:iStunTime) {     // Play the entangle sound     emit_sound(id, CHAN_STATIC, gSoundLassoExpand, VOL_NORM, ATTN_NORM, 0, PITCH_NORM)     new iHeight     new iRadius = 20, iCounter = 0     new x1, y1, x2, y2     // Some sweet crap that I don't understand courtesy of SpaceDude - draws the "cylinder" around the player     while ( iCounter <= 7 )     {
        switch(iCounter)
        {
            case 0,8: x1 = -iRadius
            case 1,7: x1 = -iRadius * 100/141
            case 2,6: x1 = 0
            case 3,5: x1 = iRadius * 100/141
            case 4: x1 = iRadius
        }
/*
        if ( iCounter == 0 || iCounter == 8 )
            x1 = -iRadius
        else if ( iCounter == 1 || iCounter == 7 )
            x1 = -iRadius * 100/141
        else if ( iCounter == 2 || iCounter == 6 )
            x1 = 0
        else if ( iCounter == 3 || iCounter == 5 )
            x1 = iRadius*100/141
        else if ( iCounter == 4 )
            x1 = iRadius
*/
        if ( iCounter <= 4 )             y1 = sqroot( iRadius*iRadius-x1*x1 )         else             y1 = -sqroot( iRadius*iRadius-x1*x1 )         ++iCounter
        switch(iCounter)
        {
            case 0,8: x2 = -iRadius
            case 1,7: x2 = -iRadius * 100/141
            case 2,6: x2 = 0
            case 3,5: x2 = iRadius * 100/141
            case 4: x2 = iRadius
        }
/*    if ( iCounter == 0 || iCounter == 8 )
            x2 = -iRadius
        else if ( iCounter == 1 || iCounter==7 )
            x2 = -iRadius*100/141
        else if ( iCounter == 2 || iCounter==6 )
            x2 = 0
        else if ( iCounter == 3 || iCounter==5 )
            x2 = iRadius*100/141
        else if ( iCounter == 4 )
            x2 = iRadius
*/
        if ( iCounter <= 4 )             y2 = sqroot( iRadius*iRadius-x2*x2 )         else             y2 = -sqroot( iRadius*iRadius-x2*x2 )         iHeight = 16 + 2 * iCounter         while ( iHeight > -40 )         {             message_begin(MSG_BROADCAST, SVC_TEMPENTITY)             write_byte(TE_BEAMPOINTS)   // 0             write_coord(origin[0] + x1)             write_coord(origin[1] + y1)             write_coord(origin[2] + iHeight)             write_coord(origin[0] + x2)             write_coord(origin[1] + y2)             write_coord(origin[2] + iHeight + 2)             write_short(gSpriteLasso)             write_byte(0)         // framestart             write_byte(0)         // framerate             write_byte(floatround(iStunTime * 10))  // life             write_byte(10)      // width             write_byte(5)         // noise             write_byte(320)   // r, g, b             write_byte(125)   // r, g, b             write_byte(0)         // r, g, b             write_byte(225)   // brightness             write_byte(0)         // speed             message_end()             iHeight -= 16         }     } }
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 01-04-2011 , 13:14   Re: Hero: Wonder Woman (AssKicR)
Reply With Quote #9

I have to ask vittu, how do you highlight a line? I've heard you can do it with @@ in front of the line, just never got it working.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 01-04-2011 , 15:58   Re: Hero: Wonder Woman (AssKicR)
Reply With Quote #10

@ vittu : i will do it this week.
@ Jelle : it's only possible with pawn tag, but i don't remember what to type for it.

Last edited by Fr33m@n; 01-04-2011 at 16:10.
Fr33m@n 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 17:19.


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