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

[CSS] Draw My ???


Post New Thread Reply   
 
Thread Tools Display Modes
Author
MPQC
SourceMod Donor
Join Date: Dec 2011
Plugin ID:
3267
Plugin Version:
1.3.0
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A turn based drawing game, mainly pictionary
    Old 09-29-2012 , 00:51   [CSS] Draw My ???
    Reply With Quote #1


    1.3.0

    Description

    Draw my ??? is a turn based drawing game for CSS. One person is chosen to draw, while the rest of the players must guess what s/he is drawing. Each person is given 60 seconds to draw. If guessed correctly, points will be awarded accordingly to both the drawer and guesser. After each round a new person is chosen.

    How the point system works. The first person to guess the word correctly gains three points. The current drawer will gain two points, and every correct guesser after that will gain one point.

    How To Play
    When you are a drawer: Your word is printed to both regular chat, and hint chat (bottom middle). Your goal is to draw this word. To do that, hold left click and move your mouse. That's it. Navigate the menu to change color, size, undo mistakes, forfeit, and erase everything.

    When you are a guesser: Type what you believe the person is drawing in chat. If it's correct you'll be notified, otherwise it will go through normally.

    Cvars
    dr_amountrepeats - How often words can potentially be repeated. Default: 100

    Admin Commands
    sm_disabledraw - ADMFLAG_BAN - Disables a player from drawing until map change.

    User Commands
    sm_menu, !menu, /menu - Brings up the drawing menu (when you're the current drawer)
    .
    sm_rank, !rank, /rank, rank - Displays your current ranking.
    sm_top10, !top10, /top10, top10 - Displays the top 10 players.
    sm_score, !score, /score - Compare your global score against everyone else currently in the game.
    sm_skip, !skip, /skip, skip - Skips your turn until either the map changes, or you type skip again.
    sm_help, !help, /help, help - Displays information on how to play the game.
    !forfeit - Forfeits your current turn.

    Requirements
    MoreColors
    SDKTools

    Installation
    Install requirements
    Add wordlist.txt to \addons\sourcemod\config
    Add drawscores.txt \addons\sourcemod\config
    (Optional) Add adminmenu_custom to \addons\sourcemod\configs if you want the admin command in the admin menu.
    Add draw.smx to \addons\sourcemod\plugins
    Add all textures to \cstrike\materials\draw
    Add maps!

    Screenshots
    Fruits
    Bulletproof
    Squirrel
    Daredevil

    Screenshots of Default Maps
    draw_driveintheatre_fix - by Scoutkllr
    draw_pool_v2 - by Girl in Lingerie
    draw_island_v1 By [SG] Riperzz
    draw_cinema_v1 (port) - by [SG] Paul
    draw_ice_v3 - By Bullet Wound
    draw_space - By MPQC
    draw_rooftops - By Sexual Harassment Panda
    draw_movietheatre_v2 - By Girl in Lingerie
    draw_tiletown_fix - By Sexual Harassment Panda
    draw_dust - By Kippe
    draw_mountains - By [SG] Riperzz
    draw_warehouse - By Sexual Harassment Panda
    draw_rats_v1 (port) - By [SG] Paul


    Server to Play on
    SteamGamers.com - 74.91.116.98:27015

    Maps
    Here.

    Special Thanks
    Mitchell, for creating the LAZERRRRSSSS!! plugin, which I have used a snippit from (code used is commented in.)
    To all the people making the maps to play on so far: [SG] Riperzz, Girl in Lingerie, Kippe, Scoutkllr, Sexual Harassment Panda, Bullet Wound, [SG] Paul, and any I've missed.
    Erik_ from EpicRadio.co.uk for making the logo.

    Notes
    No SQL database is needed. All scores are handled in drawscores.txt.
    Suggested player limit is 8.
    Attached Files
    File Type: txt adminmenu_custom.txt (254 Bytes, 583 views)
    File Type: zip drawmy_1_3_0.zip (52.6 KB, 599 views)

    Last edited by MPQC; 02-19-2013 at 22:55.
    MPQC is offline
    MPQC
    SourceMod Donor
    Join Date: Dec 2011
    Old 09-29-2012 , 00:52   Re: [CSS] Draw My ???
    Reply With Quote #2

    Making a map for Draw My ???

    Making a map is very simple. The only thing that is a necessity is some kind of screen to draw on, preferably black, which is the easiest screen color to draw on. The screen should be some type of block entity (such as func_breakable) so that sprays cannot be sprayed onto the screen.

    Optional entities: All entities must be of the type "info_teleport_destination". To create them, simply name them one of the following:

    black - Changes the default pen color to black

    teleportguesser and teleportdrawer - Both must be placed if you wish to use this feature. Having each of these will teleport their respective person to that teleporter at the beginning of each round. For example, the drawer will be teleporter to teleportdrawer, and all the guessers will be teleported to teleportguesser.

    As a side note, it is recommended that any map maker should make sure people do not spawn with any guns. It's fine to spawn with or without a knife, but players should not be spawning with guns -> they can shoot each other which screws up their screen.

    Lastly, all spawns should be all on the same team. It doesn't matter whether it's CT, or T, as long as they're all the same.
    MPQC is offline
    TheHardstyleBro
    Senior Member
    Join Date: Jun 2012
    Location: Netherlands
    Old 09-29-2012 , 08:42   Re: [CSS] Draw My ???
    Reply With Quote #3

    Looks very cool
    __________________
    TheHardstyleBro is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 09-29-2012 , 16:39   Re: [CSS] Draw My ???
    Reply With Quote #4

    Code:
    public Action:MDrawLaser(client, args)
    {
    	// Code taken from Mitchel's LASERRRRRRRRRS plugin. All credits to him.
    	if (client == g_currentturn)
    	{
    		g_lastlaser[0] = 0.0;
    		g_lastlaser[1] = 0.0;
    		g_lastlaser[2] = 0.0;
    		g_isDrawing = false;
    	}
    	return Plugin_Handled;
    }
    isnt actually used?
    and do you mind me taking the code for your lasers to re-write my plugin with?
    Mitchell is offline
    MPQC
    SourceMod Donor
    Join Date: Dec 2011
    Old 09-29-2012 , 16:43   Re: [CSS] Draw My ???
    Reply With Quote #5

    Seems it's not. I'll remove it when I do another update, if any suggestions pop up.

    Feel free to use anything you want in this plugin, however.
    MPQC is offline
    MPQC
    SourceMod Donor
    Join Date: Dec 2011
    Old 10-08-2012 , 00:25   Re: [CSS] Draw My ???
    Reply With Quote #6

    Quote:
    Originally Posted by Mitchell View Post
    Code:
    public Action:MDrawLaser(client, args)
    {
        // Code taken from Mitchel's LASERRRRRRRRRS plugin. All credits to him.
        if (client == g_currentturn)
        {
            g_lastlaser[0] = 0.0;
            g_lastlaser[1] = 0.0;
            g_lastlaser[2] = 0.0;
            g_isDrawing = false;
        }
        return Plugin_Handled;
    }
    isnt actually used?
    and do you mind me taking the code for your lasers to re-write my plugin with?
    Edited as such.
    __________________
    MPQC is offline
    InB
    AlliedModders Donor
    Join Date: Aug 2012
    Location: Los Angeles
    Old 12-29-2012 , 23:53   Re: [CSS] Draw My ???
    Reply With Quote #7

    How come it keeps killing people when the round is over?
    __________________
    InB is offline
    MPQC
    SourceMod Donor
    Join Date: Dec 2011
    Old 12-31-2012 , 11:49   Re: [CSS] Draw My ???
    Reply With Quote #8

    It will slay people when the map timer is over. I've uploaded a new version -> be sure to update.
    __________________

    Last edited by MPQC; 12-31-2012 at 12:41.
    MPQC is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 12-31-2012 , 13:04   Re: [CSS] Draw My ???
    Reply With Quote #9

    Quote:
    Originally Posted by MPQC View Post
    It will slay people when the map timer is over. I've uploaded a new version -> be sure to update.
    Why not just call TerminateRound?

    Last edited by Mitchell; 12-31-2012 at 13:04.
    Mitchell is offline
    alongub
    Veteran Member
    Join Date: Aug 2009
    Location: Israel
    Old 02-19-2013 , 15:28   Re: [CSS] Draw My ???
    Reply With Quote #10

    Code:
    for (new i = 0; i < MaxClients; i++)
    change to i = 1; i <= MaxClients

    Code:
    if (g_clock != INVALID_HANDLE)
    {
    	CloseHandle(g_clock);
    }
    Just use TIMER_FLAG_NO_MAPCHANGE.
    __________________

    Last edited by alongub; 02-19-2013 at 15:37.
    alongub 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 23:03.


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