Raised This Month: $12 Target: $400
 3% 

[TFC] Nail grenade bug fix


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Team Fortress Classic        Category:   General Purpose       
pizzahut
Senior Member
Join Date: Oct 2004
Old 03-01-2015 , 15:31   [TFC] Nail grenade bug fix
Reply With Quote #1

A popular but frowned upon bug in TFC is setting off a nail grenade below a ceiling or at a wall. When this happens the nail grenade will rise and get stuck inside, causing damage to the whole hallway upon explosion.

There's a Metamod plugin which fixes this issue to a degree, but it seems limited to separating floor and ceiling, while an enemy who is below a ceiling or door with a stuck grenade still gets damaged from far away.

So here's my attempt at fixing it, it's not perfect but hopefully good enough.

I've used Ramono's Automatic Unstucking plugin as basis.

Cvars:
fix_ng_bug_enabled - 0 = off, 1 = on
fix_ng_bug_version - The version number of this plugin.
Attached Files
File Type: sma Get Plugin or Get Source (fix_nail_gren_bug.sma - 803 views - 2.1 KB)
__________________
My AMXX plugins (content date 2007-03-29, link check 2017-04-26)

Plugins for the Royston Vasey TFC server - These are UNSUPPORTED, except those which have been published at AMX Mod X.

Last edited by pizzahut; 03-01-2015 at 17:34.
pizzahut is offline
pizzahut
Senior Member
Join Date: Oct 2004
Old 11-13-2015 , 17:48   Re: [TFC] Nail grenade bug fix
Reply With Quote #2

When I wrote this plugin I thought nail grens which are stuck in a wall also trigger this bug, but apparently that's not the case. So it needs to be modified to only remove nail grens which are inside a ceiling.

I've reverted to Sparky since I discovered this, however I have problems with the server sometimes crashing with a "corrupted double-linked list" error which I suspect Sparky is causing it. So this is another reason to use the AMXX plugin instead of Sparky, just needs to be tweaked.

Last edited by pizzahut; 11-14-2015 at 10:53.
pizzahut is offline
RoboCop
AlliedModders Donor
Join Date: Dec 2010
Location: Dundee, Scotland
Old 11-14-2015 , 08:18   Re: [TFC] Nail grenade bug fix
Reply With Quote #3

Hope it goes well!
__________________
vBulletin Webmaster Since 2001
Bots-United Webmaster and Botmaster
RoboCop is offline
Send a message via Skype™ to RoboCop
Reply


Thread Tools
Display Modes

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 -4. The time now is 00:50.


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