AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CSS/CS:GO] Roll The Dice (https://forums.alliedmods.net/showthread.php?t=94835)

NeoTrantor 06-16-2009 05:47

[CSS/CS:GO] Roll The Dice
 
2 Attachment(s)
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 ;)

Xp3r7 06-16-2009 10:48

Re: [CSS] Roll The Dice
 
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! :)

shustas 06-18-2009 19:18

Re: [CSS] Roll The Dice
 
Ye, there should be possibility to choose what to allow and what not. Like antiflash. Advert would be nice as well

NeoTrantor 06-19-2009 06:14

Re: [CSS] Roll The Dice
 
Your requested features are implemented, among some others. I'll post the new version here as soon as they're tested.

shustas 06-20-2009 10:15

Re: [CSS] Roll The Dice
 
nice, will be waiting

NeoTrantor 06-20-2009 18:25

Re: [CSS] Roll The Dice
 
Updated.

shustas 06-20-2009 19:50

Re: [CSS] Roll The Dice
 
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...

NeoTrantor 06-21-2009 06:31

Re: [CSS] Roll The Dice
 
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.

shustas 06-21-2009 07:23

Re: [CSS] Roll The Dice
 
: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()

:38:03: [SM] Native "KillTimer" reported: Invalid timer handle 458a03e1 (error 1)
L 06/21/2009 - 12:38:03: [SM] Displaying call stack trace for plugin "ata_rollthedice.smx":
L 06/21/2009 - 12:38: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:
:31:37: [SM] Native "KillTimer" reported: Invalid timer handle d8cd03c1 (error 3)
L 06/21/2009 - 11:31:37: [SM] Displaying call stack trace for plugin "ata_rollthedice.smx":
L 06/21/2009 - 11:31:37: [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

shustas 06-21-2009 14:03

Re: [CSS] Roll The Dice
 
Come on man, you got nice plugin, just fix those errors


All times are GMT -4. The time now is 20:02.

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