![]() |
|
HS Plugin - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: HS Plugin (/Thread-HS-Plugin.html) |
HS Plugin - Krusty123 - 02-17-2013 Is it possible to code a Plugin, which will check if someone do hs, or maybe ns? RE: HS Plugin - SaS*RED - 03-16-2013 *push* we really need something like that!!
RE: HS Plugin - 99IRock - 03-16-2013 This is for instakill: Code: public override int OnPlayerDamaged(ServerClient Attacker, ServerClient Victim, string Weapon, int Damage, string DamageMod, HitLocations HitLocation)
{
if (Weapon.Contains("desert"))
return 100;
else
return base.OnPlayerDamaged(Attacker, Victim, Weapon, Damage, DamageMod, HitLocation);
}Maybe we can modify a locations (I don't know if possible) But I guess it's possible, I think if we find it, and modify this code i twill work RE: HS Plugin - aceed - 03-17-2013 I can never quite get to grips of MW3 terms these days.. HS means HEADSHOT, or it could mean HARDSCOPE? and NS? both of these would be easy. As 99Irock said, but since weapon is a string, i'd say: Quote: if (Weapon == "desert") To add head shot detection in there it's pretty damn easy.. Quote:if (Weapon == "desert" && I'm not sure changing the location is actually possible because we can only return damage, so you can't force an instagib headshot without rewriting things.. If so, for instant headshots you'd have to do something like: Quote:OnPlayerDamaged(...) As for a hardscope mod.. I'm not sure, you could do a: Quote:Dictionary alreadyinAds = new Dictionary<string, TimeDate> |