Raised This Month: $ Target: $400
 0% 

Anti-Sniper


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ancient1
Senior Member
Join Date: Jul 2004
Location: UK
Old 09-17-2004 , 04:21   Anti-Sniper
Reply With Quote #1

OK, yes I know there is no one here who plays TFC however I am still going to ask

My problem is this:

1. TFC has this habit of enduring all noobs who come from other mods, especially the CS community to instantly take a sniper class on joining the server. This in itself is not the problem. These sniper noobs, then spend the rest of the map sniping each other, by that I mean having their very own little sniper war. Which means they forget the concept of the game which is to Capture the flag.

Solution to this is simple: Make it impossible for a sniper to kill a sniper!!


So my request is for a plugin for TFC which will make snipers immune to damage from enemy sniper fire [Sniper Rifle only], other weapons such as the AR or grenade etc must still be capable of killing each.

I have no idea if this concept is even possible? I suspect is is but I have no clue as to how it could be made? Anyhoo, over to you script whizz's

Regards,

Ancient
__________________
ancient1 is offline
ancient1
Senior Member
Join Date: Jul 2004
Location: UK
Old 09-17-2004 , 19:10  
Reply With Quote #2

Bump already
__________________
ancient1 is offline
ancient1
Senior Member
Join Date: Jul 2004
Location: UK
Old 09-20-2004 , 07:04  
Reply With Quote #3

Can anyone even just tell me if its possible please?

Ancient
__________________
ancient1 is offline
WDUK
Senior Member
Join Date: Aug 2004
Location: Great Britain
Old 09-20-2004 , 10:25  
Reply With Quote #4

It might be possible, I'm not sure. Sound like it could be, but I could be wrong
__________________
R.E.M Gig 2005
Done by VH2
Lancashire Cricket Ground
I'm There!
WDUK is offline
Send a message via MSN to WDUK
Votorx
Senior Member
Join Date: Jun 2004
Old 09-20-2004 , 12:58  
Reply With Quote #5

Don't see why it wouldn't be possible. Register a damage event (gotta check if its possible with tfc), compare the weapons both the victim and the attacker have and if their both snipers nullify the damage.

Or

You can just prohibit the use of snipers. Just use prethink when they're in attack, then check what class they have and if its a sniper just cancel the action, should keep them from using the snipers unless they're stupid.

Code:
tfc_getwpnname ( weapon, name[], len ) & TFC_WPN_SNIPERRIFLE

Should make this all possible.
__________________
Currently Looking for a mod team.
Votorx is offline
Send a message via AIM to Votorx Send a message via MSN to Votorx Send a message via Yahoo to Votorx
ancient1
Senior Member
Join Date: Jul 2004
Location: UK
Old 09-23-2004 , 05:21  
Reply With Quote #6

Anyone fancy this challenge?

Ancient
__________________
ancient1 is offline
Votorx
Senior Member
Join Date: Jun 2004
Old 09-23-2004 , 13:21  
Reply With Quote #7

Hey if you can wait 2 or 3 weeks then I'll get on it
__________________
Currently Looking for a mod team.
Votorx is offline
Send a message via AIM to Votorx Send a message via MSN to Votorx Send a message via Yahoo to Votorx
ancient1
Senior Member
Join Date: Jul 2004
Location: UK
Old 09-24-2004 , 03:24  
Reply With Quote #8

That would be most gracious of you, thankyou

PS I can wait as long as it takes, cause I cant do it myself

Ancient
__________________
ancient1 is offline
Votorx
Senior Member
Join Date: Jun 2004
Old 09-25-2004 , 10:57  
Reply With Quote #9

Code:
#include <amxmodx> #include <engine> public plugin_init() {     register_plugin("Stop Sniping Attack","1.0","Votorx/Pherexia") } public client_PreThink(id){     if(entity_get_int(id, EV_INT_button) & IN_ATTACK){         if(user_has_weapon(id,TFC_WPN_SNIPERRIFLE)){             client_print(id, print_chat,"Snipers aren't allowed to attack on this server")             return PLUGIN_HANDLED         }     }     return PLUGIN_CONTINUE }

Eh you can try that, I don't have a TFC server on my comp so no way to test if it works or not.
__________________
Currently Looking for a mod team.
Votorx is offline
Send a message via AIM to Votorx Send a message via MSN to Votorx Send a message via Yahoo to Votorx
ancient1
Senior Member
Join Date: Jul 2004
Location: UK
Old 09-27-2004 , 08:16  
Reply With Quote #10

Just a quick look at your code before I compile it etc, won't this plugin simply stop a sniper from firing the weapon? no matter what?

Ancient
__________________
ancient1 is offline
Reply



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 23:44.


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