AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S, CS:GO] Roll The Dice (Würfeln) (https://forums.alliedmods.net/showthread.php?t=152035)

dordnung 03-03-2011 15:06

[CS:S, CS:GO] Roll The Dice (Würfeln)
 
13 Attachment(s)
Roll a dice with 33 Features, a great favourite on Fun Servers

English and German



The Numbers:


1: Drunk (Only CS:S)
2: Drugs
3: Burn
4: 1.65x Speed
5: Rocket
6: Nothing
7: Long Jump
8: Deagle
9: -50 Health
10: +50 Health
11: 0.65x Speed
12: Grenade
13: Two Flashbangs
14: Nothing
15: Half Gravity
16: Twice Gravity
17: 1.65x Speed and +50 Health
18: -30 Health, half Gravity and 0.65x Speed
19: Twice Gravity, 0.65x Speed, +30 Health
20: 5 Seconds noclip
21: 30 Seconds freezed
22: 100 Seconds shaked
23: Glock
24: Only 1 HP
25: M3
26: Froggy (2x) Jump
27: Always Nightvision
28: Low FOV
29: High Fov
30: Almost Invisible
31: Have 200 HP and more Speed, but burn instantly
32: ALL Players are walking backwarts (Default: Off!)
33: ALL Players are ice skaters



ConVars:

  • dice_text:
    Command to dice (without exclamation mark), convert to UTF-8 without BOM for special characters
  • dice_team:
    2 = Only T's can dice, 3 = Only CT's can dice, 0 = Everybody can dice
  • dice_show:
    Players, which see the result: 1 = Everybody, 2 = just T's, 3 = just CT's, 4 = Only you
  • dice_rand:
    1 = Random text when result is a weapon, 0 = Off
  • dice_count:
    How often a player can dice per round
  • dice_money:
    x = Money one dice costs, 0 = Off


Installation:

Copy the addons and cfg Folder in your gamedir Folder

Edit the Config in "cfg/dice/dice_config.cfg" and "cfg/dice/dice_enables.cfg"



Changelog:

Code:

1.6.2 - Fixed problem when health <= 0
      - Changed the way to kill a client
1.6.1 - Added Support for Auto Updater
      - Fixed Noclip Timer announcer
1.6 - Added 3 new features
    - Have 200 HP and more Speed, but burn instantly
    - ALL Players are walking backwarts
    - ALL Players are ice skaters
1.56 - Replaced M3 with sawed off in CSGO
1.55 - Added Feature 26-30 (see above)
    - Fixed bug, that wrong text is shown
    - Fixed NoClip Timer bug
    - Added cvar dice_money and dice_count
    - Fixed translation mistakes
1.51 - Protection against unwanted behavior (Thanks Sheepdude)
1.5 - Moved precaches to OnMapStart()
    - Fixed bug, that other team see the text
    - Changed colors for CS:GO
    - Fixed infinite loop on missing config
1.4 - A lot of code improvements
    - Added support for CS:GO
    - 3 new Features
    - Enables of numbers in extra file
    - Command works now right
1.31 - Fixed another Spam Bug
1.3 - Fixed Spam Bug
1.2 - Added convars to disable numbers
      Added Shake
      Added dice Team
      Fixed Drug Bug
      Use sm_command to dice
1.1 - Fixed 2 Bugs
1.0 - Release


Have Fun!!

dordnung 03-04-2011 07:10

Re: [CS:S] Dice (Würfeln) by Popoklopsi
 
UPDATE:

Code:

1.1 - Fixed 2 Bugs

Groger 03-04-2011 11:47

Re: [CS:S] Dice (Würfeln) by Popoklopsi
 
Drugs doesnt reset whene a restartgame occurs.

You should create more cvar's so we can adjust the features/or disable them.
!dice is not a console command, it would be nice if its a console command (sm_dice) -> so we can overide the acces to donaters only.

But all in all very solid plugin, works great! well done

Thrawn2 03-04-2011 11:52

Re: [CS:S] Dice (Würfeln) by Popoklopsi
 
<blink>please stop _abusing_ colors and fontsizes</blink>

also: attach the sourcecode directly please. way friendlier to people who want to take a look at your code.

dordnung 03-04-2011 13:36

Re: [CS:S] Dice (Würfeln) by Popoklopsi
 
@Groger

Ok, i will check this
And i can also add mor convars

@Thrawn

Haha okay^^, i will edit this thread tomorrow^^
Okay, but it can't be compiled online.

PandoraBoX 03-05-2011 13:39

Re: [CS:S] Dice (Würfeln) by Popoklopsi
 
Very Nice, I tested it on my mg. I didn't realize that only T's could roll. Anyways you should add a cvar to enable so that both CT and T can roll. This is an amazing plugin and you have a good thing going.

dordnung 03-10-2011 07:25

Re: [CS:S] Dice (Würfeln) by Popoklopsi
 
UPDATE:

Code:

1.2 - Added convars to disable numbers
      Added Shake
      Added dice Team
      Fixed Drug Bug
      Use sm_command to dice


Groger 03-23-2011 11:00

Re: [CS:S] Dice (Würfeln) by Popoklopsi
 
Allright, this is awsome.

Thx for your update!

One request tho, can you add a dice_enableplugin command, so we can disable the plugin on some maps.

databomb 03-29-2011 14:31

Re: [CS:S] Dice (Würfeln) by Popoklopsi
 
Popoklopsi, using enums would make your code much more readable! Also, if someone has many dice options turned off it will almost always say that dice is disabled - possibly have an array of only choose from those dice numbers that are enabled. Other than that, good job and thanks for this plugin!

Groger, you could get away with this in the map config until there is a cvar to turn on/off:
sm plugins unload dice
but I forget if I had to load it in the next cycled map or not

Groger 03-29-2011 14:45

Re: [CS:S] Dice (Würfeln) by Popoklopsi
 
Yeah I did that , but its always nice to have a cvar like that (also for our admins)

Ps: You dont have to load it in the next map cycle, it auto loads whene its in the plugin folder


All times are GMT -4. The time now is 12:45.

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