• 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release Hardcore Ricochet 1.2
#1
Kills team killers in hardcore.Works only if hard core is enabled on the server.
Code:
[Ricohet]
Enable=true
//true or false

Source:
CSHARP Code
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using Addon;
  5.  
  6. namespace Ricohet
  7. {
  8. public class Ricohet: CPlugin
  9. {
  10. public override void OnServerLoad()
  11. {
  12. ServerPrint("Ricohet damage for hardcore loaded");
  13. }
  14. public override int OnPlayerDamaged(ServerClient Attacker, ServerClient Victim, string Weapon, int Damage, string DamageMod, HitLocations HitLocation)
  15. {
  16.  
  17. if (Attacker.Team == Victim.Team && Attacker.XUID != Victim.XUID&&GetServerCFG("Ricohet","Enable","true")=="true")
  18. {
  19. if (Attacker.Other.Health - Damage <= 0)
  20. {
  21. KillPlayer(Attacker.ClientNum, Attacker.ClientNum, GetWeapon(Weapon), string.Empty);
  22. }
  23.  
  24. else
  25. {
  26. Attacker.Other.Health -= Damage;
  27. }
  28. return 0;
  29.  
  30. }
  31. else
  32. {
  33. return Damage;
  34. }
  35. }
  36.  
  37. }
  38. }


Update log:
1.2: Doesn't check for hardcore instead enabled from sv_config


Attached Files
.rar   Ricohet.rar (Size: 1.94 KB / Downloads: 43)
.rar   Ricohet 1.2.rar (Size: 1.96 KB / Downloads: 31)
[-] The following 6 users say Thank You to archit for this post:
  • d0h!, narkos, Nekochan, OzonE, surtek, zxz0O0
  Reply
#2
Hello,

Maybe:
CSHARP Code
  1. if (Attacker.Other.Health - Damage <= 0)


Can be replaced by:
CSHARP Code
  1. if (Damage >= Attacker.Other.Health)


I know it doesn't change so much, but ... lol
Good job Wink
(It is not possible to play hardcore ricochet with the basic game options?)
[-] The following 2 users say Thank You to narkos for this post:
  • archit, zxz0O0
  Reply
#3
Modern Warfare 3 doesn't have that function?
---------------------
Ontopic: Really fine, i don't like some team killers on some servers lol, and thank you @zxz0O0 for 'KillPlayer' function.
C++/Obj-C developer. Neko engine wip
Steam: Click
[-] The following 1 user says Thank You to Nekochan for this post:
  • OzonE
  Reply
#4
Yep thx @zxz0O0 for adding kill and suicide functions Wink <3
[-] The following 1 user says Thank You to narkos for this post:
  • OzonE
  Reply
#5
(09-05-2012, 13:17)narkos Wrote: (It is not possible to play hardcore ricochet with the basic game options?)
What do you mean?(ricochet in game without hardcore but friendly fire enabled?)
  Reply
#6
I mean when you go to find a lobby, you can choose standard, advanced and more, in advanced you have a lot of hardcore ricochet, so i thought there were an in-game config to do it...
archit Wrote:"(ricochet in game without hardcore but friendly fire enabled?)"
yep something like that....

************
Have you tried your plugin in other gametypes? cuz i think for example in FFA it will be a problem, all the players are in the same team, so a player try to kill an other player, and he will be killed/damaged himself for that...?

If it makes problems, just add a check of the gametype before doing your stuff.....
  Reply
#7
Is it possible to make this work with CORE game mode? So when playing in public servers, people have the friendly damage ricocheted onto them.

Thanks.
  Reply
#8
Very Simple , But +1 , These Plugins Are Very Useful. Thanks.
  Reply
#9
I will release a version soon which allows this without hardcore requirement
  Reply
#10
New update released !
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Release] Hardcore Simulator mn_acer1 4 2,157 08-25-2013, 13:28
Last Post: mn_acer1
  [Release] Semi hardcore 1.1 beta (Killcam on and ff off) atenziono 61 16,358 08-09-2013, 18:13
Last Post: OzonE
  Hardcore no ff killcam allowed spiderabd 7 2,079 10-13-2012, 22:44
Last Post: trimi_dogg
  [Request] Disable Friendly Fire and Enable Kill Cam on hardcore mode. Dumas 15 5,164 09-10-2012, 14:45
Last Post: OzonE
  Help Server Hardcore Problem Krusty123 5 1,180 08-16-2012, 19:31
Last Post: Krusty123
Rainbow [Request] how can on killcam and off ff in SD-hardcore mod? archangel 2 659 05-01-2012, 14:39
Last Post: archangel
Star [Request] Hardcore, FF off, KillCam on... executor33 5 1,311 03-22-2012, 16:13
Last Post: DidUknowiPwn
  Plugin respawn delay on Hardcore mode !! aversieso 3 1,691 02-04-2012, 15:52
Last Post: fookaa
Rainbow [Release] No Respawn Delay HardCore 1.4.382 kokole 4 1,547 01-26-2012, 23:46
Last Post: JariZ
  Hardcore Mode demoon 10 3,388 11-29-2011, 13:38
Last Post: demoon

Forum Jump:


Users browsing this thread: 1 Guest(s)