Raised This Month: $ Target: $400
 0% 

[ND] Structure Killing


Post New Thread Reply   
 
Thread Tools Display Modes
Author
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Plugin ID:
3023
Plugin Version:
1.0.0
Plugin Category:
General Purpose
Plugin Game:
Nuclear Dawn
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Provides announcements and a mini-game for structure killing.
    Old 06-17-2012 , 21:44   [ND] Structure Killing
    Reply With Quote #1

    So, this will provide a chat announcement on who killed what structure. For each 20th structure that gets killed, the killer's team will get a health bonus.

    (Requires the colors library to compile. Will NOT compile on the forums!)

    -Version 1.0.0 initial release
    -Version 1.0.1 comments addressed
    Attached Files
    File Type: smx struct-minigame.smx (8.0 KB, 194 views)
    File Type: sp Get Plugin or Get Source (struct-minigame.sp - 286 views - 4.4 KB)
    __________________

    Last edited by databomb; 09-23-2012 at 19:14.
    databomb is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 08-15-2012 , 18:44   Re: [ND] Structure Killing
    Reply With Quote #2

    PHP Code:
    if (team == TEAM_CONSORT)
            {
                
    CPrintToChatAll("{red}%N {lightgreen}just gave {red}Consortium {lightgreen}the advantage!"client);
                
    CPrintToChatAll("{red}%N {lightgreen}just gave {red}Consortium {lightgreen}the advantage!"client);
                
    CPrintToChatAll("{red}%N {lightgreen}just gave {red}Consortium {lightgreen}the advantage!"client);
                
    PrintCenterTextAll("Advantage - Consortium");
            }
            else if (
    team == TEAM_EMPIRE)
            {
                
    CPrintToChatAll("{blue}%N {lightgreen}just gave the {blue}Empire {lightgreen}the advantage!"client);
                
    CPrintToChatAll("{blue}%N {lightgreen}just gave the {blue}Empire {lightgreen}the advantage!"client);
                
    CPrintToChatAll("{blue}%N {lightgreen}just gave the {blue}Empire {lightgreen}the advantage!"client);
                
    PrintCenterTextAll("Advantage - Empire");
            } 
    Why is it printed three times?

    And why are the team colors backwards?
    __________________
    Dr. McKay is offline
    databomb
    Veteran Member
    Join Date: Jun 2009
    Location: california
    Old 08-15-2012 , 20:59   Re: [ND] Structure Killing
    Reply With Quote #3

    Quote:
    Originally Posted by Dr. McKay View Post
    PHP Code:
    if (team == TEAM_CONSORT)
            {
                
    CPrintToChatAll("{red}%N {lightgreen}just gave {red}Consortium {lightgreen}the advantage!"client);
                
    CPrintToChatAll("{red}%N {lightgreen}just gave {red}Consortium {lightgreen}the advantage!"client);
                
    CPrintToChatAll("{red}%N {lightgreen}just gave {red}Consortium {lightgreen}the advantage!"client);
                
    PrintCenterTextAll("Advantage - Consortium");
            }
            else if (
    team == TEAM_EMPIRE)
            {
                
    CPrintToChatAll("{blue}%N {lightgreen}just gave the {blue}Empire {lightgreen}the advantage!"client);
                
    CPrintToChatAll("{blue}%N {lightgreen}just gave the {blue}Empire {lightgreen}the advantage!"client);
                
    CPrintToChatAll("{blue}%N {lightgreen}just gave the {blue}Empire {lightgreen}the advantage!"client);
                
    PrintCenterTextAll("Advantage - Empire");
            } 
    Why is it printed three times?

    And why are the team colors backwards?
    Things are easily lost with the chat spam.. joining/disconnecting/structure killing. The colors will appear backwards only by their arbitrary assignment from the include file in the code; they appear as the correct color while in the game. The only downside is that it will show as light-green instead of blue/red if you're in a squad.
    __________________
    databomb is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 08-15-2012 , 21:27   Re: [ND] Structure Killing
    Reply With Quote #4

    Quote:
    Originally Posted by databomb View Post
    Things are easily lost with the chat spam.. joining/disconnecting/structure killing. The colors will appear backwards only by their arbitrary assignment from the include file in the code; they appear as the correct color while in the game. The only downside is that it will show as light-green instead of blue/red if you're in a squad.
    I've played on a server with this plugin before, and the messages weren't lost among the chat.

    How about you add a cvar to toggle between 1 and 3 messages, and I'll approve this?

    Oh, also you need a public version cvar.
    __________________

    Last edited by Dr. McKay; 08-15-2012 at 21:41.
    Dr. McKay is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 08-15-2012 , 21:34   Re: [ND] Structure Killing
    Reply With Quote #5

    Quote:
    Originally Posted by Dr. McKay View Post
    Oh, also you need a public version cvar.
    That's optional.
    psychonic is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 08-15-2012 , 21:38   Re: [ND] Structure Killing
    Reply With Quote #6

    Quote:
    Originally Posted by psychonic View Post
    That's optional.
    Oops. Coulda sworn it was required.
    __________________
    Dr. McKay is offline
    databomb
    Veteran Member
    Join Date: Jun 2009
    Location: california
    Old 09-23-2012 , 19:15   Re: [ND] Structure Killing
    Reply With Quote #7

    A cvar was provided to specify the number of times the message is repeated: nd_struct_msg_multiplier w/ default value of 3.
    __________________
    databomb is offline
    Gallomimia
    Junior Member
    Join Date: Jun 2012
    Old 09-25-2012 , 04:16   Re: [ND] Structure Killing
    Reply With Quote #8

    Plugin failed to compile! Please try contacting the author.
    Gallomimia is offline
    databomb
    Veteran Member
    Join Date: Jun 2009
    Location: california
    Old 09-25-2012 , 06:43   Re: [ND] Structure Killing
    Reply With Quote #9

    Quote:
    Originally Posted by Gallomimia View Post
    Plugin failed to compile! Please try contacting the author.
    Did you read the notice in the first post?

    Quote:
    (Requires the colors library to compile. Will NOT compile on the forums!)
    __________________
    databomb 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 00:10.


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