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

[HL] Stacionary Guns Frag Counter


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Deathmatch Classic        Category:   Technical/Development       
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 06-11-2012 , 04:08   [HL] Stacionary Guns Frag Counter
Reply With Quote #1



Stacionary Guns Frag Counter


Description:
Lets count frag on killing by tower cannon on crossfire or by energy base weapon on the_beach (on screen). Also removing tk in teamplay when friendlyfire is off.
Attached Files
File Type: sma Get Plugin or Get Source (stacionary_frag_counter.sma - 1320 views - 2.2 KB)
__________________
The functional way is the right way

Last edited by GordonFreeman (RU); 10-06-2012 at 23:45.
GordonFreeman (RU) is offline
isotonic
AlliedModders Donor
Join Date: Jun 2011
Location: Moscow, Russia
Old 06-11-2012 , 11:27   Re: [HL] Stacionary Guns Frag Counter
Reply With Quote #2

Finally!
--
There is more important problem with using TANKs. It is teamkilling on HL Teamplay servers even if mp_friendlyfire is 0. Could you block such damage? Is it possible in general?
__________________

Last edited by isotonic; 06-11-2012 at 11:40.
isotonic is offline
XINLEI
me too
Join Date: Jun 2011
Location: Colombian Coffee storage
Old 06-11-2012 , 16:51   Re: [HL] Stacionary Guns Frag Counter
Reply With Quote #3

http://forums.alliedmods.net/showthread.php?t=56230
XINLEI is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-11-2012 , 18:22   Re: [HL] Stacionary Guns Frag Counter
Reply With Quote #4

Why not just check m_pController offset?
__________________
xPaw is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 06-12-2012 , 02:45   Re: [HL] Stacionary Guns Frag Counter
Reply With Quote #5

Updated.
  • Preventing TK in teamplay when friendlyfire is off
  • Now using m_pController offset instead of Ham_Use checks

Spoiler
__________________
The functional way is the right way
GordonFreeman (RU) is offline
isotonic
AlliedModders Donor
Join Date: Jun 2011
Location: Moscow, Russia
Old 06-13-2012 , 09:02   Re: [HL] Stacionary Guns Frag Counter
Reply With Quote #6

Works fine! Thanks!
--
How about to add support for doublecross?
__________________
isotonic is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 06-13-2012 , 09:08   Re: [HL] Stacionary Guns Frag Counter
Reply With Quote #7

Hm? It doesnt count kills from tower on doublecross?
__________________
The functional way is the right way
GordonFreeman (RU) is offline
isotonic
AlliedModders Donor
Join Date: Jun 2011
Location: Moscow, Russia
Old 06-13-2012 , 10:00   Re: [HL] Stacionary Guns Frag Counter
Reply With Quote #8

Yeah, it doesn't. I didn't test for prevent TK.
__________________
isotonic is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 06-13-2012 , 10:42   Re: [HL] Stacionary Guns Frag Counter
Reply With Quote #9

Are you sure? Look atachment. It works on all func_tankmortar, func_tanklaser and func_tankrocket.

--
Spoiler
Attached Thumbnails
Click image for larger version

Name:	doublecross0002.jpg
Views:	418
Size:	39.7 KB
ID:	104955  
__________________
The functional way is the right way
GordonFreeman (RU) is offline
isotonic
AlliedModders Donor
Join Date: Jun 2011
Location: Moscow, Russia
Old 06-13-2012 , 11:52   Re: [HL] Stacionary Guns Frag Counter
Reply With Quote #10

Sorry. I was wrong.

Spoiler
__________________
isotonic 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 15:16.


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