AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Vehicle Kills (https://forums.alliedmods.net/showthread.php?t=6571)

DS 10-07-2004 03:32

Vehicle Kills
 
2 Attachment(s)
Vehicle Kills 1.25
by Damaged Soul

AMX Mod X Version: 1.75 and above
Supported Mods: Counter-Strike 1.6 and Condition Zero

Description
This plugin allows players to see death messages that can show who killed whom with a vehicle.

Required Modules
Cstrike
Fakemeta

Usage
  • Cvars
    • amx_vk_frags [Default Value: 1]
      • Determines how many frags a player gets for killing someone on the other team with a vehicle
    • amx_vk_tkpenalty [Default Value: 1]
      • Determines how many frags a player loses for killing someone on the same team with a vehicle
    • amx_vk_tkpunish [Default Value: 0]
      • Determines whether or not to instantly kill a player when they kill a teammate with a vehicle
      • If set to 1, a TKer will be killed directly after killing someone on the same team with a vehicle
      • If set to 0, then the plugin will do nothing directly after killing someone on the same team with a vehicle
    • amx_vk_version
      • Shows the version of the plugin
Version History
  • 1.25 [July 4, 2006]
    • Added: amx_vk_version cvar for more easily finding a server with this plugin
    • Death messages are now also done via emessage_begin which now allows team kill plugins, such as ATAC, to detect vehicle kills. This should allow things such as forgiving the team kill.
    • No longer relies on the Engine module
  • 1.22 [Apr. 26, 2006]
    • Added: amx_vk_tkpunish cvar that when set to 1 will instantly kill a player after they kill a teammate
    • Fixed: No death message appeared when there was a suicide involving a vehicle (somehow the bug returned or wasn't fixed properly the first time)
  • 1.21 [Apr. 23, 2006]
    • Fixed: As a side effect of replacing suicides with vehicle deaths in the HL logs, chat logging (as well as most logged information from CS/CZ) was blocked
  • 1.20 [Apr. 21, 2006]
    • Minor optimizations to code
    • Now uses the pcvar natives for getting values of cvars
    • Fixed: Runtime errors involving invalid players
    • Fixed: When a true suicide involving a vehicle occurred no death message appeared at all
    • Fixed: Vehicle deaths were still being reported as suicides in standard HL logs
  • 1.10 [Oct. 7, 2004]
    • Public release
    • Changed to no longer rely on fun module
    • Added: amx_vk_tkpenalty cvar for how many frags to subtract for team killing with a vehicle
  • 1.00 [Oct. 4, 2004]
    • Initial version

Kamikaze 10-07-2004 11:35

Wow, I have always wanted this feature for cs_carzzzz map, it's no fun playing that map when you get no kills when running ppl over plus ppl worry about stats so much, they snipe on the top of the hill, now everyone can have fun with this map, including the statistics worrying ppl.

antileet 10-07-2004 19:37

Great plugin, I use it now on my server 24/7 (We are a Nipper-only map server so this plugin fits in great)

tinkleondabeach 07-26-2005 05:51

it makes players cant buy round after.

Bo0m! 04-21-2006 00:04

Code:

L 04/20/2006 - 21:58:44: [CSTRIKE] Invalid player 23
L 04/20/2006 - 21:58:44: [AMXX] Displaying debug trace (plugin "vehiclekills.amxx")
L 04/20/2006 - 21:58:44: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 04/20/2006 - 21:58:44: [AMXX]    [0] vehiclekills.sma::score_delay (line 106)

I know it's been a while since this plugin has been updated but, can anyone fix this? It's flooding my server logs all over the place :?

DS 04-21-2006 14:41

Quote:

Originally Posted by Bo0m!
I know it's been a while since this plugin has been updated but, can anyone fix this? It's flooding my server logs all over the place :?

I have just posted an update to this plugin that fixes various issues. See if the new version doesn't fix the problem you describe. (It should...)

`666 04-21-2006 15:55

hmmm im geting bad load

`666 04-21-2006 16:03

oh i think i know why im using amxx 1.60 lol

Bo0m! 04-23-2006 00:38

Problem with this plugin: When using it the logs refuse to log chat messages even with mp_logmessages 1. Not sure if it causes any other problems.

DS 04-23-2006 06:05

Quote:

Originally Posted by Bo0m!
Problem with this plugin: When using it the logs refuse to log chat messages even with mp_logmessages 1. Not sure if it causes any other problems.

Thank you for reporting this bug. I made a mistake with the return value of the contain native. :oops: This is now fixed in 1.21.

Bo0m! 04-23-2006 16:24

Well it still reports the wrong names on occasion but other than that it's working great now :up:

Just a request: Could you possibly add a cvar that if a person runs over their teammate they instantly get slayed? (Not on by default but it would be great for some maps like crazytank)

DS 04-24-2006 03:04

Quote:

Originally Posted by Bo0m!
Well it still reports the wrong names on occasion but other than that it's working great now :up:

I'd like to get this working as perfectly as possible, but do you know in what situations that it occasionally shows the wrong names? Perhaps it happening when there are lot of deaths by vehicle in a short amount of time? I'll try to look into this on my own though.

As for your request, I think that can certainly be arranged. Do you want this instant slaying to occur in addition to the death they may receive due to mp_tkpunish being set to 1 on the next round or do you want only the instant slay to occur and to block the slay on the next round? Or perhaps I could just set up some options for either one.

`666 04-24-2006 15:33

or maybe when u get run over by team m8 menu pops up and there is option slay him or forgive him coz sometimes u kill ur team m8 coz he just ducking/jumping in the car

DS 04-26-2006 13:20

Ok, I have added the "instant kill" option to kill TKers. Please let me know if you still see any incorrect name being displayed in the death message. I spent quite a bit of time trying to find a possible problem, but I have not found anything wrong with it (yet).

`666 04-26-2006 17:25

ones i killed some 1 with knife and it showed 2nd massage what i killed other player with the car but i didnt :S

Bo0m! 04-26-2006 17:35

Found one way that it seems to report wrong names:
One round I drove the tank, then the round reset, somebody else drove the tank next round and my name showed up when they ran someone over.
I haven't tested to see that this scenario leads to wrong names every time, but it's just something that happened recently.

DS 07-04-2006 16:41

Re: Vehicle Kills
 
I have released a new version (1.25) that no longer relies on the Engine module. Also, if you use a team kill related plugin such as ATAC, that plugin should now be able to take action thanks to a new feature in AMXX 1.75. So forgiving someone for a vehicle kill that was a team kill should now be possible. I'll leave the TK stuff to other plugins.

`666 07-05-2006 08:10

Re: Vehicle Kills
 
1st thank you Damaged Soul for keeping it up 2 date. Can you tell me please what part of code tells what death [img]http://img216.**************/img216/3010/death7if.jpg[/img] sprite to display? Was thinking to make custom one.
Thank You.

DS 07-06-2006 05:06

Re: Vehicle Kills
 
Quote:

Originally Posted by `666
1st thank you Damaged Soul for keeping it up 2 date. Can you tell me please what part of code tells what death [IMG]http://img216.**************/img216/3010/death7if.jpg[/IMG] sprite to display? Was thinking to make custom one.
Thank You.

There really isn't any code that specifically sets what the sprite should be unfortunately. The death sprite changes depending on what weapon is set in the death message. I set it to "vehicle" and since there isn't a sprite for vehicles, it displays the generic death sprite. I'd love to be able to change it. But I'm not really sure if it is possible to do that without a client-side modification.

`666 07-06-2006 07:56

Re: Vehicle Kills
 
Well i gess have to stick with this one :( Thanks for reply.

`666 10-01-2006 23:02

Re: Vehicle Kills
 
woah just seen that "ATAC, to detect vehicle kills" lol nice

`666 10-01-2006 23:58

Re: Vehicle Kills
 
Just installed team attack v2.5.5.4 and it dosent detect team kills :(

g3x 10-02-2006 00:50

Re: Vehicle Kills
 
Quote:

Originally Posted by `666 (Post 386594)
Just installed team attack v2.5.5.4 and it dosent detect team kills :(

Maybe some scripting problems samething is happening to me I will look at the code after I help a friend

`666 10-02-2006 01:04

Re: Vehicle Kills
 
ok cheers

DS 10-02-2006 01:55

Re: Vehicle Kills
 
1 Attachment(s)
I just took at a look at ATAC again and it appears to still be working fine for me as far as detecting team kills.

Attachment 11171

I'm guessing there is nothing in your logs that indicates a problem with ATAC?

`666 10-02-2006 09:33

Re: Vehicle Kills
 
is vehicle plugin loaded before or after atac plugin?

`666 10-02-2006 09:48

Re: Vehicle Kills
 
nvm i made it work now lol sorry for waste of u r time.

sleeperzzz 10-04-2006 08:50

Re: Vehicle Kills
 
ha nice going with this plugin...lol....now its even more fun running ppl over.

WPH-Len 03-03-2007 16:13

Re: Vehicle Kills
 
Theres a bug, it's reporting that someone that is not actually driving the car infact is not even on the car killed another person, occasionly would be nice to see this fixed ty. I use it on my server and if anyone has a working version please email me it [email protected]

Simon Logic 04-02-2007 05:44

Re: Vehicle Kills
 
Am i right that this plugin does not count airstrike deaths, func_tankmortar deaths, etc (also i tested - it does not work too)? After reading the script i guessed that plugin starts to work after DeathMsg has come with weapon name equals to "vehicle". This is possible under CZ only. So, this plugin has nothing to do with airstrike, stationary guns etc & it was not planned to score those deaths, right?

`666 11-18-2007 09:09

Re: Vehicle Kills
 
This happens often:

If player1 (CT) team kills with vehicle player2 (CT) and at the same time if player3 (CT) kills player4 (T) with normal weapon or vehicle then it shows what player3(CT) team killed player2 (CT) or even sometimes it shows what dead/spectator player team killed player2 (CT) instead of showing real team killer...

`666 08-28-2008 15:17

Re: Vehicle Kills
 
it got some issue with hlstatsx
It logs one kill twice and because of it hlstatsx count this as 2 kills.
Code:

Line 1218 : L 08/28/2008 - 20:12:03: "Stan<72><STEAM_0:0:XXXX><TERRORIST>" killed "Boris<79><STEAM_0:0:XXXX><CT>" with "vehicle" (attacker_position "129 -3088 -780") (victim_position "343 -3134 -815")
Line 1219 : L 08/28/2008 - 20:12:03: "Stan<72><STEAM_0:0:XXXX><TERRORIST>" killed "Boris<79><STEAM_0:0:XXXX><CT>" with "vehicle"



All times are GMT -4. The time now is 12:14.

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