SRB2 Message Board  

Go Back   SRB2 Message Board > Archived > Outdated Releases (2.1.X) > Lua (2.1.X)

Thread Tools
Nade to Mine Details »»
Nade to Mine
Version: The first-ish, by Rapidgame7 (scripting bee) Rapidgame7 is offline
Developer Last Online: Jan 2021

Category: Version: SRB2 Rating: (1 votes - 3.00 average)
Released: 09-24-2017 Last Update: Never Favourites: 0
Scripts Re-Useable Content

It restores the former glory of grenade rings - by turning them into mines!

They will explode early when any player that is considered an enemy comes nearby:
If not in a team game, that is everybody but you.
In a team game, that means everybody not in your team.

They still explode after an amount of time, but they last a little longer than normal grenades.

Spoiler: CVars
All CVars are marked as cheat CVars, and will print a message when they are changed.
All time CVars, when changed, will display the amount of tics you set in seconds.

nadefuse <integer in tics>
Default: 525 tics (15 seconds)
Sets the maximum amount of time a grenade may last before exploding.

nadecheckstart <integer in tics>
Default: 70 tics (2 seconds)
After throwing a grenade, once this amount of time passes, the grenade will be able to explode when tripped by an enemy.
This prevents grenades from detonating too early.

nadecheckdist <integer in fracunits>
Default: 192 fracunits
When an enemy gets this close to a grenade, it will explode.
This does not change the explosion radius.

nadefriendlytrip <0|1|2>
Default: 0
Sets who is considered an enemy, basically.
0 makes the mine trip when an enemy is nearby. (Opposite team in team games, everyone but you in non-team games)
1 acts like 0, but also trips on team members. (Does nothing on non-team games)
2 acts like 1, but also trips on the shooter.

nadedestroy <0|1|2>
Default: 0
This is a little experimental feature.
When a player throws a grenade and disconnects/changes teams, what happens depends on the current value of this CVar:
If 0, grenades from this player will be removed.
If 1, they will all explode at once.
If 2, they will remain in the game, but they will damage anybody (tripping mechanism still follows team rules). (A little buggy though)

Download Now

File Type: lua nadeToMine.lua (3.4 KB, 226 views)


Click image for larger version

Name:	srb20020.gif
Views:	1393
Size:	278.1 KB
ID:	11578  

Show Your Support

  • The author of this addon has given explicit permission for its content to be re-used and/or reproduced.

Old 11-20-2017   #2
MascaraSnake's Avatar

Welcome to Releases!
MascaraSnake is offline  
Old 11-21-2017   #3
ThunderFlame's Avatar

Wait? The grenade ring was changed? I thought it always acted like a mine and exploded in proximity and on contact?
I am Predator.
ThunderFlame is offline  
Old 11-21-2017   #4
MascaraSnake's Avatar

It was changed in v2.1. Now it just explodes after 6 seconds regardless of whether a player is nearby or not.
MascaraSnake is offline  
Old 11-21-2017   #5
The one and only!
MK.exe's Avatar

Hahah, this makes the Rails not as OP and anyone can use it and you'll be competing with everyone else.

Heck you can win a match with nades only.
Severely optimistic 😬😬
MK.exe is offline  

Thread Tools

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. The time now is 08:12 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.