RollTheDice [Alpha] Version 2/14/15
Though currently in a pre-alpha state, it's working. Made for Shine as a plugin/extension. Basically saying "/rtd" or "/rollthedice" in chat (with an press m > rtd feature soon, maybe) emits a random positive or negative effect based on chance and luck. There's a cooldown in between rolls for the sake of balance (although the rolls are meant to break balance) that can be changed via sh_rtddelay. If RTD rolls something that'snot eligable for, it effectively re-rolls until it finds something, and only when it finds something eligable, it will then add the delay for the player.
Currently, this is packed together with "SiegeModCommands" shine extension found inside of SiegeMod, and not converted into a single plugin used standalone.
Currently these are the rolls available:
Marines:
1: Gain random amount of resources (Only eligable if owned 90 or less res. Total amount of res to give does not go above 100. Gets the currents players resources and subtracts that number minus 100 to get the max amount of res available to give. Also displays this number in chat. "Name has won X amount of resources")
2. Lose random amount of resources (Only eligable if owning 10 or more resources. Does not go below 0, gets players current res and sets the max amount of res available to take and advertises how much res has been lost in chat)
3. Switch to a random weapon (This one was tricky because it rolls a number then based on that number it checks the current slow if it's empty or taken up, if taken up then checks to make sure the weapon to give isnt the same weapon in the slot, and if it matches these circumstances then it deletes that weapon in the current slot (because you dont want the weapon to drop on the floor and be able to pick it up, it would ruin the point of this), then it gives said weapon. Or if it's a grenade, it drops an active grenade where the marine is at (cluster, nerve, electric).
4. Become stomped for 10 seconds (no visual display for this yet, just an annoying roll altogether).
Aliens:
1: Gain random amount of resources (Only eligable if owned 90 or less res. Total amount of res to give does not go above 100. Gets the currents players resources and subtracts that number minus 100 to get the max amount of res available to give. Also displays this number in chat. "Name has won X amount of resources")
2. Lose random amount of resources (Only eligable if owning 10 or more resources. Does not go below 0, gets players current res and sets the max amount of res available to take and advertises how much res has been lost in chat)
3. As an alien, If you are a skulk, you win gore. If you are a lerk, you win bile bomb/spikes. If you are a gorge, you win primal scream/spikes (The messiest of the bunch as each class had to be modified to add the weapons to these classes. Which is somewhat okay because these weapons aren't attained via biomass or upgrades or any other way than cheats or RTD, though the animations are glitchy, the convars for them are glitchy such as fire rate /attack speed / animation display / chances of attaining biomass overriding these slots. It may be better to do this from scratch down the line and specifically modify each weapon for each class to get it 100% right with animations/convars/firerates/delays/right click abilities etc etc.
4. Gain enzyme for 10 seconds (no visual display for this yet/cancels out with flamethrower) ~ would prefer this to be 30 seconds where flamethrower doesn't cancel it, and where there is a visual display countdown timer.
5. Redeem/teleport back to the hive (Requires the redemption addition found in ns2c/siegemod, though can be be rewritten not to)
All in all just wanted to post this current progress here as it's been something I wanted to do for a while. From NS1, back on the "School of Darwinism", RTD was enabled every weekend to goof things up. And in TF2 where I managed a server I also wrote RTD for the server to expand it from being a serious server, to a server where players can let off some steam. I plan to do the same with the siege server every weekend and have RTD enabled only on the weekends, that is if the server stays alive with playercounts and such.
Currently, this is packed together with "SiegeModCommands" shine extension found inside of SiegeMod, and not converted into a single plugin used standalone.
Currently these are the rolls available:
Marines:
1: Gain random amount of resources (Only eligable if owned 90 or less res. Total amount of res to give does not go above 100. Gets the currents players resources and subtracts that number minus 100 to get the max amount of res available to give. Also displays this number in chat. "Name has won X amount of resources")
2. Lose random amount of resources (Only eligable if owning 10 or more resources. Does not go below 0, gets players current res and sets the max amount of res available to take and advertises how much res has been lost in chat)
3. Switch to a random weapon (This one was tricky because it rolls a number then based on that number it checks the current slow if it's empty or taken up, if taken up then checks to make sure the weapon to give isnt the same weapon in the slot, and if it matches these circumstances then it deletes that weapon in the current slot (because you dont want the weapon to drop on the floor and be able to pick it up, it would ruin the point of this), then it gives said weapon. Or if it's a grenade, it drops an active grenade where the marine is at (cluster, nerve, electric).
4. Become stomped for 10 seconds (no visual display for this yet, just an annoying roll altogether).
Aliens:
1: Gain random amount of resources (Only eligable if owned 90 or less res. Total amount of res to give does not go above 100. Gets the currents players resources and subtracts that number minus 100 to get the max amount of res available to give. Also displays this number in chat. "Name has won X amount of resources")
2. Lose random amount of resources (Only eligable if owning 10 or more resources. Does not go below 0, gets players current res and sets the max amount of res available to take and advertises how much res has been lost in chat)
3. As an alien, If you are a skulk, you win gore. If you are a lerk, you win bile bomb/spikes. If you are a gorge, you win primal scream/spikes (The messiest of the bunch as each class had to be modified to add the weapons to these classes. Which is somewhat okay because these weapons aren't attained via biomass or upgrades or any other way than cheats or RTD, though the animations are glitchy, the convars for them are glitchy such as fire rate /attack speed / animation display / chances of attaining biomass overriding these slots. It may be better to do this from scratch down the line and specifically modify each weapon for each class to get it 100% right with animations/convars/firerates/delays/right click abilities etc etc.
4. Gain enzyme for 10 seconds (no visual display for this yet/cancels out with flamethrower) ~ would prefer this to be 30 seconds where flamethrower doesn't cancel it, and where there is a visual display countdown timer.
5. Redeem/teleport back to the hive (Requires the redemption addition found in ns2c/siegemod, though can be be rewritten not to)
All in all just wanted to post this current progress here as it's been something I wanted to do for a while. From NS1, back on the "School of Darwinism", RTD was enabled every weekend to goof things up. And in TF2 where I managed a server I also wrote RTD for the server to expand it from being a serious server, to a server where players can let off some steam. I plan to do the same with the siege server every weekend and have RTD enabled only on the weekends, that is if the server stays alive with playercounts and such.
Comments
P.s - I know it may be messy and there may be better ways to write everything. But it works, so it works. Currently.
This forum is really not the right format for it.
If you still want to share certain snippets please use Pastebin or Gist or at least put a spoiler around it
Thanks. Maybe a group only one day. At the moment I plan on making it a single plugin outside of siegemod once it's ready enough.
Here's todays changelog. Lots of positives -.- (no point in posting the sourcecode right now either)
It would be pretty funny to have a giant gorge and a tiny onos running around the place.
I remember awhile back gibs made a mod that every time a gorge spit landed the gorge grew in size. It had a problem that the gorge hit box remained the same no matter how big the gorge got. If you fix that it would be pretty cool. Tiny onos would be OP.
I however fixed this and released the ScaleModelMixin which enables you to scale any model and it's collision box. It is used in GorgeCraft and was used in the videos I made with the tiny players mod. It is simple to incorporate and is available on steam as open source for anyone to use in open source projects.
Link