Raised This Month: $68 Target: $400
 17% 

[CSS/CS:GO] Roll The Dice


Post New Thread Reply   
 
Thread Tools Display Modes
Author
NeoTrantor
Member
Join Date: Mar 2009
Location: Germany
Plugin ID:
945
Plugin Version:
1.1.1-beta
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Roll the dice for a nice surprise!
    Old 06-16-2009 , 05:47   [CSS/CS:GO] Roll The Dice
    Reply With Quote #1

    Description

    Players can roll a dice by saying !rollthedice or !rtd and get one of these for the current round:
    • get random amount of health
    • loose random amount of health (slap)
    • get random amount of money
    • loose random amount of money
    • get random weapon
    • loose random weapon
    • increase walking speed
    • decrease walking speed
    • invisibility
    • glow (still needs some work)
    • vampire: get HP for damage given to other players
    • mirror damage: loose HP when hitting other players
    • sunglasses: flashbangs won't bother you anymore
    • druggy view (temporarily disabled)
    • berserker: get health, armor and speed boost, can only use knife which instantly kills your victims
    • infinite ammo
    • jammed weapons
    • froggy jumping
    more to come in further versions...

    Install instructions

    Unzip the archive to your cstrike folder. If you want to disable specific features, see cstrike/addons/sourcemod/config/ata_rollthedice.cfg.
    Version >=0.3 requires the Dukehacks extension. I added a "nodukehacks" version which doesn't require the extension in case you are too lazy to install it although it's missing that nice knockback in berserker mode and I didn't test this version at all. So go for the normal dukehacks version unless you have good reasons not to use it!
    *update*
    Version >=0.5.1 doesn't need extensions anymore!

    CVars

    See cstrike/cfg/sourcemod/ata_rollthedice.cfg which will be created by the plugin after the first start.

    Changelog

    Code:
    0.2:
        * Initial release
    0.3:
        * Added some comments to code
        * Berserker kills have some extra gore and victims are knocked back
        * Plugin announcement as requested
        * Ability to enable/disable single features as requested
        * Configurable sounds
        * Added beacon to "Glow" effect
    0.3.1:
        * Bug fixes
    0.4.0:
        * Bug Fixes
        * Configurable dice count per map as requested
        * Configurable amount of extra gore in berserker mode
        * Added effect: infinite ammo
        * Added effect: weapon jam
        * Added effect: froggy legs
    0.4.1:
        * Fixed: sounds not playing sometimes
    0.5.0:
        * Fixed closing of invalid handles (causing error messages in log)
        * using sdkhooks instead of dukehacks (will use "ataextension" later)
    0.5.1:
        * using no extensions at all.
    0.5.2:
        * fixed announcement timer bug (thanks to dataviruset)
    0.5.3b (dataviruset edit):
        * translation problems fixed
    0.5.3c (dataviruset edit):
        * updated gamedata to work with Windows-servers
    0.5.4:
        * merged dataviruset's changes
    1.0.0:
        * fixed bug in function RemoveRandomWeaponFromSlot (tried to remove world entity)
    1.1.0:
        * added spanish translation (thanks to Franc1sco)
        * fixed disabling announcement / setting sm_rtd_announce_interval to 0
        * broken "extra gore" for berserker mode can be disabled by setting "sm_rtd_berserker_extra_gore" to 0
        * another fix in RemoveRandomWeaponFromSlot
    1.1.1-beta:
        * works with new versions of CSS and with CS:GO
        * druggy view and extra gore in berserker mode were temporarily disabled because of compatibility issues

    Credits


    Credits go to all plugin developers on alliedmods I took either some inspiration or even some lines of code from ;)
    Attached Files
    File Type: zip ata_rollthedice_v1.1.0.zip (37.5 KB, 10471 views)
    File Type: zip ata_rollthedice_v1.1.1-beta.zip (37.3 KB, 2502 views)
    __________________

    Last edited by NeoTrantor; 12-28-2014 at 15:34. Reason: Plugin update
    NeoTrantor is offline
    Xp3r7
    SourceMod Donor
    Join Date: Jul 2006
    Old 06-16-2009 , 10:48   Re: [CSS] Roll The Dice
    Reply With Quote #2

    Very nice!

    Glad to see a CSS version of this out finally (that works)!



    EDIT: After playing it, heres a couple of suggestions:

    Allow us to disable/enable what we want (like we have flashbangs restricted on our servers so getting the sunglasses does nothing - good nor bad).

    Put up adverts to let people know they can type !rtd or !rollthedice to use it.

    Played for about 30 to 45 mins and didnt see anyone get drugged. Possible bug? I saw everything else in the list execpt drug.


    Very fun!

    Keep up the good work!
    __________________

    Last edited by Xp3r7; 06-16-2009 at 11:48.
    Xp3r7 is offline
    Send a message via MSN to Xp3r7
    shustas
    SourceMod Donor
    Join Date: May 2007
    Location: London
    Old 06-18-2009 , 19:18   Re: [CSS] Roll The Dice
    Reply With Quote #3

    Ye, there should be possibility to choose what to allow and what not. Like antiflash. Advert would be nice as well
    __________________
    shustas is offline
    NeoTrantor
    Member
    Join Date: Mar 2009
    Location: Germany
    Old 06-19-2009 , 06:14   Re: [CSS] Roll The Dice
    Reply With Quote #4

    Your requested features are implemented, among some others. I'll post the new version here as soon as they're tested.
    NeoTrantor is offline
    shustas
    SourceMod Donor
    Join Date: May 2007
    Location: London
    Old 06-20-2009 , 10:15   Re: [CSS] Roll The Dice
    Reply With Quote #5

    nice, will be waiting
    __________________
    shustas is offline
    NeoTrantor
    Member
    Join Date: Mar 2009
    Location: Germany
    Old 06-20-2009 , 18:25   Re: [CSS] Roll The Dice
    Reply With Quote #6

    Updated.
    NeoTrantor is offline
    shustas
    SourceMod Donor
    Join Date: May 2007
    Location: London
    Old 06-20-2009 , 19:50   Re: [CSS] Roll The Dice
    Reply With Quote #7

    dudehacks crash my server, testing nodude version now.
    And the sounds are taken from hl2 or needs to be downloaded?
    I dont see where to disable antiflash...
    __________________

    Last edited by shustas; 06-20-2009 at 20:07.
    shustas is offline
    NeoTrantor
    Member
    Join Date: Mar 2009
    Location: Germany
    Old 06-21-2009 , 06:31   Re: [CSS] Roll The Dice
    Reply With Quote #8

    Yup, sounds are taken from hl2 but can easily be customized. See cstrike/addons/sourcemod/config/ata_rollthedice.cfg as mentioned in the install instructions for how to disable antiflash. Just comment out the whole "sunglasses" section in that file like shown in the example.
    NeoTrantor is offline
    shustas
    SourceMod Donor
    Join Date: May 2007
    Location: London
    Old 06-21-2009 , 07:23   Re: [CSS] Roll The Dice
    Reply With Quote #9

    :06:13: Info (map "cs_office") (file "errors_20090621.log")
    L 06/21/2009 - 06:06:13: [SM] Native "CloseHandle" reported: Handle d000ce is invalid (error 1)
    L 06/21/2009 - 06:06:13: [SM] Displaying call stack trace for plugin "ata_rollthedice.smx":
    L 06/21/2009 - 06:06:13: [SM] [0] Line 316, ata_rollthedice.sp::OnMapEnd()

    8:03: [SM] Native "KillTimer" reported: Invalid timer handle 458a03e1 (error 1)
    L 06/21/2009 - 128:03: [SM] Displaying call stack trace for plugin "ata_rollthedice.smx":
    L 06/21/2009 - 128:03: [SM] [0] Line 459, ata_rollthedice.sp::EventPlayerDeath()

    L 06/21/2009 - 10:52:28: [SM] Native "SDKCall" reported: Invalid Handle d000ce (error 1)
    L 06/21/2009 - 10:52:28: [SM] Displaying call stack trace for plugin "ata_rollthedice.smx":
    L 06/21/2009 - 10:52:28: [SM] [0] Line 288, /server/hlds/srcds/cstrike/addons/sourcemod/scripting/include/ata_tools.inc::AddExtraGore()
    L 06/21/2009 - 10:52:28: [SM] [1] Line 400, ata_rollthedice.sp::EventPlayerHurt()

    Lots of this error:
    17: [SM] Native "KillTimer" reported: Invalid timer handle d8cd03c1 (error 3)
    L 06/21/2009 - 1117: [SM] Displaying call stack trace for plugin "ata_rollthedice.smx":
    L 06/21/2009 - 1117: [SM] [0] Line 346, ata_rollthedice.sp::EventPlayerSpawn()

    Right, not bad for a start, but here you go...

    Cant use plugin for now, cos it just spams my logs with those errors
    __________________

    Last edited by shustas; 06-21-2009 at 07:57.
    shustas is offline
    shustas
    SourceMod Donor
    Join Date: May 2007
    Location: London
    Old 06-21-2009 , 14:03   Re: [CSS] Roll The Dice
    Reply With Quote #10

    Come on man, you got nice plugin, just fix those errors
    __________________
    shustas 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 12:49.


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