GoldenEye: Source Forums

Editing and Customization => Featured Releases => Community Content => Past Versions => Topic started by: WNxEuphonic on February 19, 2011, 09:34:39 am

Title: [Gameplay] Casino Royale
Post by: WNxEuphonic on February 19, 2011, 09:34:39 am




Casino Royale and Casino Royale LTK have been updated. The below version is outdated and should no longer be used. You can download the revised version via Github on my website here: https://euphonic.dev/goldeneye-source/





(http://www5.picturepush.com/photo/a/5100463/img/5100463.png)

Gameplay: Casino Royale
by WNxEuphonic
Synopsis
At the beginning of each round, a random weapon will be selected and given to all players. A timer at the top of the HUD counts down while players fight. When the timer runs out, all players are given the same new weapon and the counter resets. Ammo spawns dynamically change to give ammo for the current weapon.

When the round begins, all players are given a single use of "power" which is used by hitting the "!voodoo" key. When a power is used, the current weapon time is lowered (depending on the number of players). Players can restore their power by scoring a melee kill. An indicator at the top of the HUD displays whether players have power available or not.

Behind the Scenes (Helpful for Server Admins)
There are three custom "cvar" variables accessible to server admins.

cr_timer [integer] - Sets the time between weapon changes (Default 40)
cr_power [1/0] - Enables the use of "power" to shorten the gameplay (Default 1)
cr_teamscoring [1/0] - When enabled and in teamplay, adds a HUD display with the number of kills each team has gotten in the current weapon time. Whichever team has more kills when the timer counts down gets a point and the kills reset. Individual scoring stays the same (Default 1)
cr_killtimer [2/1/0] - When set to 1 bases the timer to the next weapon on the number of frags, when set to 2 does a combination of the timer and the frags, when set to 0 is timer-only (Default 0)
cr_killtimer_weight [integer] - When cr_killtimer [1 or 2] sets the number of kills to the next weapon, ignoring the timer. (Default 10 for deathmatch, 20 for LTK)

ge_startarmed is still important in Casino Royale! It decides whether players are given slappers for their melee weapon or if they are given a knife.

Server operators can custom define their weapon lists by editing the CasinoRoyale.py gameplay file. At the top of the file is a list of the weapons in the form (Weapon, WeaponPrintName, AmmoAmount). If you edit the the length of this list, make sure to set self.crCustomList to 1 within the gameplay file.

There are six types of emitted gameplay events available to plugin makers. The first is cr_weaponchange which does not assign itself to a player and is emitted when the weapon changes. cr_powerused is emitted when a player uses their power and is assigned to that player. cr_restoredpower is emitted when a player restores their power through a knife skill and is assigned to that player. The latter two are only emitted when cr_power 1. When teamplay is active and cr_teamscoring 1, there are 3 more events. cr_team_tie is emitted when both teams tie during a weapon time, cr_team_win is emitted when a team scores the most kills during a weapon time, and cr_team_lose is emitted when a team has the least number of kills during a weapon time. The latter two are assigned to one of the two teams.

The HUD
Timer Bar/Power Indicator
(http://www5.picturepush.com/photo/a/5100553/img/5100553.png)
The bar indicates the time until the next weapon. This bar will adjust to changes to cr_timer changes on the fly. The "Power" indicator on the top right disappears when a player uses their power and reappears at the beginning of a new round or after a melee kill.
Chat Messages
(http://www2.picturepush.com/photo/a/5100570/img/5100570.png)
From top to bottom of the above screenshot. The first shows that a player has used their power, identifying the player and explaining what exactly happened. The second message shows that a player scored a melee kill and restored their power (this message is not displayed if a player had not yet used their power since players can only have one power in reserve at a time). The third message shows an error when players attempt to use a power they don't have, while the final message displays a weapon switch.

Players can type !current into the chat to receive a message displaying the current weapon. By default the mode excludes proximity mines and timed mines from being given since they do not play well with the gameplay.

A sound is played when players restore their own power, the weaponset is changed, or a player uses their power.
Team Scoring
(http://www5.picturepush.com/photo/a/5580088/img/5580088.jpg)
When in teamplay with cr_teamscoring 1, this HUD display shows up on the left side of every players screen. It displays the number of kills each team has scored with the current weapon during the current timer. At the end of the timer, these scores reset to 0:0 and a chat message is displayed with the winning team. If both teams score the same number of kills, both teams get 1 point. If both teams get 0 kills, no message is sent and neither team gets a point.

Casino Royale LTK
Casino Royale LTK is similar in play to Casino Royale, except with one shot kills. By default only single fire weapons, klobbs and grenades are included in the rotation.

Video Demonstration
You can watch a short demo of Casino Royale here (http://www.youtube.com/watch?v=7mXEEuHIlB0).

Special Thanks
Special thanks to E-S and KillerMonkey for answering and tolerating my tons of questions. Big thanks to E-S for helping me test and providing me feedback. Thanks to WNxFalko for giving me the idea to restore power on melee kills. Thanks to WNxBadPlayer for running our WNx servers and helping me set up the larger tests. Big thanks to everyone in WNx for their support and of course the GE:S Dev Team (Especially VC) for making such an awesome mod : )

Problems I'm Aware Of
When players pick up an ammo box, they receive both the custom ammunition for the gameplay as well as the default ammo box amount. When the gameplay weapon and the default ammo boxes are the same ammo type, players receive both. When players pick up an ammo box containing a grenade or mine, they drop the tiny weapon box on the ground; these little boxes start littering the floor easily. All of these except the double ammo are aesthetic and do not affect gameplay, and the double ammo only mildly.


- Download - (http://www.mediafire.com/?ux448b295ynm04x)

Update 2/19/2011 -- Fixed spawn weapons being dropped on player spawn (Mild Update)

Update 2/19/2011 -- Created three gameplay events (Player uses power, player gains power from melee kill, weapon changes). Also fixed problem where players could use power in spectator mode.

Update 4/30/2011 -- Prevented players being able to use power after round end.

Update 5/02/2011 -- Added new team scoring system, ability to use kills instead of timer or combination of both

Update 8/3/2012 -- Added support for bots, updated for GE:S 4.2

Update 8/10/2012 -- Fixed Casino Royale using Casino Royale LTK weapon list resulting in melee-only coming up all the time

Update 6/30/2013 -- Updated modes to 4.2.3 standards

Installation instructions can be found within the .zip
If you modify this gameplay, you must retain all credits to myself (WNxEuphonic). Borrowing any components from this gameplay requires crediting both WNxEuphonic and the GE:S Devs. Cannot be sold or exchanged for anything. Even kittens.
Title: Re: [Gameplay] Casino Royale
Post by: namajnaG on February 19, 2011, 11:10:51 am
Well, That sure looks interesting to try. Does WNx hosts it now?
Title: Re: [Gameplay] Casino Royale
Post by: Kinky on February 19, 2011, 01:07:05 pm
This looks very interesting, cant wait to try it.
Title: Re: [Gameplay] Casino Royale
Post by: killermonkey on February 19, 2011, 02:43:50 pm
Wow, I am certainly impressed! Great comments in the code too.

I will PM you about your weapon dropping bug.
Title: Re: [Gameplay] Casino Royale
Post by: WNxEuphonic on February 19, 2011, 06:16:28 pm
Well, That sure looks interesting to try. Does WNx hosts it now?

It's not on our public server rotation, though it is on our private server which I occasionally take the password off of and host Casino Royale there.

I also fixed the weapons being dropped on spawn bug thanks to KillerMonkey. Link goes to the updated version in the top post.
Title: Re: [Gameplay] Casino Royale
Post by: WNxEuphonic on February 20, 2011, 12:47:24 am
A few updates:
Added gameplay events for plugin makers
Fixed players being able to use power in spectator mode
Added link to video demo

Also, this gameplay  may make an appearance on the WNx public server rotation after all. No promises.
Title: Re: [Gameplay] Casino Royale
Post by: killermonkey on February 20, 2011, 02:43:58 pm
Looks like a hell of a lot of fun. Will be playing this weekend.
Title: Re: [Gameplay] Casino Royale
Post by: WNxEuphonic on February 28, 2011, 09:47:40 pm
Both Casino Royale and Casino Royale LTK are now in the WNx server rotation.
Title: Re: [Gameplay] Casino Royale (Big Update: 5/2/2011)
Post by: WNxEuphonic on May 03, 2011, 04:18:49 am
Big update! Everything should be working and server-ready. Here's the updates:

Update 5/02/2011 -- Added new team scoring system, ability to use kills instead of timer or combination of both

See the main description for what the new team scoring system is all about as well as new cvars and gameplay events.
Title: Re: [Gameplay] Casino Royale (Big Update: 5/2/2011)
Post by: major on May 03, 2011, 05:42:14 am
mediafire seems dead.
Title: Re: [Gameplay] Casino Royale (Big Update: 5/2/2011)
Post by: WNxEuphonic on May 03, 2011, 05:52:57 am
Should be working now, also I forgot to disable armor spawns in CRLTK, so that's now fixed. If the download link doesn't work, this one should:

http://www.mediafire.com/?eb6pra00x7rurpk
Title: Re: [Gameplay] Casino Royale (Big Update: 5/2/2011)
Post by: Troy on May 03, 2011, 10:12:21 am
The cvar "cr_groupscoring" does not exist.
Title: Re: [Gameplay] Casino Royale (Big Update: 5/2/2011)
Post by: WNxEuphonic on May 03, 2011, 03:20:30 pm
The cvar "cr_groupscoring" does not exist.

Oh, *hits head* sorry it's "cr_teamscoring" not groupscoring. I've updated the first post. The files themselves are fine though.
Title: Re: [Gameplay] Casino Royale (Big Update: 5/2/2011)
Post by: WNxEuphonic on May 04, 2011, 05:14:08 am
Fixed a small glitch that was causing an error:

http://www.mediafire.com/?h0kafsdac0uwz23
Title: Re: [Gameplay] Casino Royale (Big Update: 5/2/2011)
Post by: WNxEuphonic on May 26, 2011, 12:09:58 am
Small update:

Fixed the weapons in LTK to exclude SMGs and explosives (except for remote mines)

http://www.mediafire.com/?6ny220bnqggcbaa
Title: Re: [Gameplay] Casino Royale (Big Update: 5/2/2011)
Post by: Ruone Delacroix on June 09, 2011, 11:39:12 pm
I have to say that this is now one of my favorite game variants for GoldenEye: Source. Simple to explain, very fun and challenging, and it's easy to jump in with friends and be on the same page. I've yet to try out CRLTK (kind of looks like CTRL K, lol), but I will very very soon.

Keep up the great work. Thanks for the great mode, you all.
Title: Re: [Gameplay] Casino Royale (Big Update: 5/2/2011)
Post by: WNxEuphonic on August 03, 2012, 10:13:22 pm
Updated for 4.2 code for both CR and CRLTK! Includes bot ai code (modified Deathmatch and LTK bot code)! See first post for details.
Title: Re: [Gameplay] Casino Royale (Updated for v4.2 w/ Bot Support)
Post by: killermonkey on August 03, 2012, 10:19:40 pm
Euph, get with me at some point to discuss the Ai code ;-)
Title: Re: [Gameplay] Casino Royale (Updated for v4.2 w/ Bot Support)
Post by: WNxEuphonic on August 10, 2012, 08:34:09 pm
Fixed Casino Royale DM using the Casino Royale LTK weaponlist resulting in melee-only coming up way too often. This has been fixed and the download updated. The AI code and the CR LTK files are unchanged.
Title: Re: [Gameplay] Casino Royale (Updated for v4.2 w/ Bot Support) [NEW FIX 8/10/2012]
Post by: SuperSonic on September 04, 2012, 10:23:46 pm
Your startarmed values are incorrect as there's been an update to them in 4.2.
Title: Re: [Gameplay] Casino Royale (Updated for v4.2 w/ Bot Support) [NEW FIX 8/10/2012]
Post by: WNxEuphonic on June 30, 2013, 06:20:56 pm
Updated for 4.2.3
Title: Re: [Gameplay] Casino Royale
Post by: WNxEuphonic on June 02, 2019, 11:48:57 pm
Casino Royale has been upgraded. This includes a fix to a glitch that prevented the weaponset from changing even once the gameplay was switched. You can download the revised version via Github on my website here: https://euphonic.dev/goldeneye-source/