Giter VIP home page Giter VIP logo

csgo-ff-damage-sm's People

Contributors

ilusion9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

csgo-ff-damage-sm's Issues

Inspirations from other plugins

Thank you for your work. I try to give you my experience with some other plugins like yours. And maybe you can combine the best practice.

First, I have used foreach's plugin.
Problems I had with it:

  • No bomb explode damage
  • No fall damage (I opened a pull request to fix this, but it's not accepted yet, but it was worked for me - I saw the solution at the forum thread)

After that I used Ilusion9's version. I believe it's yours early version.
And I'am still using it, and it's working fine.

So, this repo is a complete rewrite? Better in every way than others?
Thanks for the cvars for setting the ff_damage_reduction_*, that's a great idea!

Slowing Effect

How do you propose to solve the issue where if a team mate knives/shoots you, your movement speed is lowered? This could still be a huge issue.

Implement damage to HE Grenades

For my test only works on molotovs correct? Would it be possible to implement for all grenades?

Place for players to suffer damage from HE, Molotovs.

I would also like to know if damage is possible when all grenades hit the players. Famous kill when a flash. smoke, distraction kills the player with 1 health. Dies with the damage from contact with the grenade in the case. Could this damage be included for all grenades as well?

Compatibility Plugin WarMod [BFG] & PUGSetup

I have a competitive server, on it all the PUGSetup plugin among others.

sm plugins list

[SM] Listing 42 plugins:
  01 "CS:GO PugSetup" (2.0.6-dev+510) by splewis
  02 "SM Franug CS:GO Agents Chooser" (1.2) by Franc1sco franug & Romeo
  03 "Steam Works Group Manager" (1.9fix) by Someone, crashzk
  04 "Friendly Fire Damage" (2.0) by Ilusion9
  05 "hextags" (2.03) by Hexah
  06 "eItems" (0.10) by ESK0 (Original author: SM9)
  07 "Basic Commands" (1.10.0.6510) by AlliedModders LLC
  08 "Weapons & Knives" (1.7.3) by kgns | oyunhost.net
  09 "Basic Comm Control" (1.10.0.6510) by AlliedModders LLC
  10 "[ANY] Chat Responder" (1.3.4) by Headline
  11 "Nextmap" (1.10.0.6510) by AlliedModders LLC
  12 "Fun Commands" (1.10.0.6510) by AlliedModders LLC
  13 "[SWGM] Command Listener" (1.2fix) by Someone, crashzk
  14 "[ ZK Servidores™ ] Block Commands" (1.1) by Geison, crashzk
  15 "Client Preferences" (1.10.0.6510) by AlliedModders LLC
  16 "Admin Menu" (1.10.0.6510) by AlliedModders LLC
  17 "CS:GO PugSetup: damage printer" (2.0.6-dev+510) by splewis
  18 "[Levels Ranks] Core" (v3.1.7 Beta 1) by RoadSide Romeo & Wend4r
  19 "CS:GO PugSetup: team locker" (2.0.6-dev+510) by splewis
  20 "Fun Votes" (1.10.0.6510) by AlliedModders LLC
  21 "Basic Info Triggers" (1.10.0.6510) by AlliedModders LLC
  22 "Admin File Reader" (1.10.0.6510) by AlliedModders LLC
  23 "Sound Commands" (1.10.0.6510) by AlliedModders LLC
  24 "Gloves" (1.0.5) by kgns | oyunhost.net
  25 "Chat-Processor" (2.2.3) by Drixevel
  26 "Fix Competitive Warmup" (1.1) by Ilusion9
  27 "CS:GO PugSetup: write team money to chat" (2.0.6-dev+510) by Versatile_BFG/jkroepke
  28 "SM Voice Agents Enabler" (1.0) by Franc1sco franug
  29 "Anti-Flood" (1.10.0.6510) by AlliedModders LLC
  30 "Player Commands" (1.10.0.6510) by AlliedModders LLC
  31 "Basic Votes" (1.10.0.6510) by AlliedModders LLC
  32 "Basic Chat" (1.10.0.6510) by AlliedModders LLC
  33 "CS:GO PugSetup: RWS balancer" (2.0.6-dev+510) by splewis
  34 "Basic Ban Commands" (1.10.0.6510) by AlliedModders LLC
  35 "Reserved Slots" (1.10.0.6510) by AlliedModders LLC
  36 "ServerAdvertisements3" (3.1.4) by ESK0
  37 "[CS:GO] Music Kits Valve" (1.9.1) by iEx, Kento, crashzk, northeaster, ByDexter, Emur
  38 "Admin Help" (1.10.0.6510) by AlliedModders LLC
  39 "CS:GO PugSetup: autokicker" (2.0.6-dev+510) by splewis
  40 "[CS:GO] Weapon Stickers" (1.0.18) by quasemago and donut1k
  41 "[LR] Module - FakeRank" (v3.1) by Wend4r
  42 "NoBots Enforcer" (1.0) by Nikooo777

sm exts list

[SM] Displaying 16 extensions:
[01] Automatic Updater (1.10.0.6510): Updates SourceMod gamedata files
[02] Webternet (1.10.0.6510): Extension for interacting with URLs
[03] CS Tools (1.10.0.6510): CS extended functionality
[04] BinTools (1.10.0.6510): Low-level C/C++ Calling API
[05] SDK Tools (1.10.0.6510): Source SDK Tools
[06] SteamWorks Extension (1.2.3): Exposes SteamWorks functions to Developers
[07] Client Preferences (1.10.0.6510): Saves client preference settings
[08] SQLite (1.10.0.6510): SQLite Driver
[09] SDK Hooks (1.10.0.6510): Source SDK Hooks
[10] GeoIP (1.10.0.6510): Geographical IP information
[11] REST in Pawn (1.3.0): Provides HTTP and JSON natives for plugins
[12] Top Menus (1.10.0.6510): Creates sorted nested menus
[13] PTaH (1.1.3): Additional CS:GO Hooks and Natives
[14] Regex (1.10.0.6510): Provides regex natives for plugins
[15] Source Scramble (0.7.0): Tools for working with memory.
[16] MySQL-DBI (1.10.0.6510): MySQL driver implementation for DBI

Problem I'm facing would be, during Heating & Round Knife only grenade damage works.

But when the competitive starts, any kind of friendly fire works, it's not just the grenades.

Server error logs do not show any plugin errors.

Plugin cvars I configured as follows:

sm_ff_damage_reduction_hegrenade "1.0"
sm_ff_damage_reduction_hegrenade_self "1.0"
sm_ff_damage_reduction_knife "0.0"
sm_ff_damage_reduction_molotov "1.0"
sm_ff_damage_reduction_molotov_self "1.0"
sm_ff_damage_reduction_other "0.0"
sm_ff_damage_reduction_taser "0.0"

NOTE: I tested it with WarMod plugin [BFG] and I had the same problem.

Implement Level Punishment System

Implement a punishment system for players who kill their friends by friendly fire, for example:

  • Player does 170 friendly fire damage and gets kicked;
  • Player returns and does 170 friendly fire damage and is temporarily banished;
  • Player returns and does 170 friendly fire damage takes permanent banishment;

Before reaching 170 damage with friendly fire the player is notified, if continuing with friendly fire will be punished.

Note: If compatible with SourceBans++.

HOW WOULD IT WORK

Create a cvar to control the amount of friendly fire a player can give before taking a penalty.

- ff_damage_limit "X" - X would be the limit of damage the player can do before being punished;

This limit will only reset if the player gets a kick from the plugin or if the map is changed, otherwise it saves the information/amount of damage he did to his friends. This prevents players from giving retry/reconnect to not take punishments.

Punishments would be per level, after making the friendly fire limit he is kicked first, if he returns and continues with friendly fire, when he hits the friendly fire limit again he is punished with the second level, temporary ban in the case and so on against.

It would be interesting if in each punishment level you could configure the reason for kicks/bans and the time for each ban.

Slowing effect (again?)

Hi. As the first issue of this page, im got the same issue. When you knife or shoot some teammate, their move speed slow soo much.
There's some fix for it? i downloaded latest version.

Sorry my broken english, hope you can understand what im getting.

faceit mode

can you make the changes for faceit type mode

which allows friendly molotov/nades
which blocks all other type of team damage just like faceit

Isn't working

Hi! i use this plugin an time ago with splewis pugsetup. It workd for some time, but for some reason (idk) plugin just stop to work.
i have mp_friendlyfire 1
cfg not create too since i installed, so i put cvars in live.cfg (and work in a short time)
this is cvars i config:

sm_cvar sm_ff_damage_reduction_hegrenade 0
sm_cvar sm_ff_damage_reduction_hegrenade_self 1.0
sm_cvar sm_ff_damage_reduction_molotov 1.0
sm_cvar sm_ff_damage_reduction_molotov_self 1.0
sm_cvar sm_ff_damage_reduction_knife 0.0
sm_cvar sm_ff_damage_reduction_taser 0.0
sm_cvar sm_ff_damage_reduction_other 0.0

not errors too. Plugins is loaded without errors, cvars are setted without errors, but the molotov damage isnt working

Errors SM 1.10 - build 6492

L 07/28/2020 - 17:53:36: [SM] Exception reported: Client 7 is not in game
L 07/28/2020 - 17:53:36: [SM] Blaming: molotov_friendlyfire.smx
L 07/28/2020 - 17:53:36: [SM] Call stack trace:
L 07/28/2020 - 17:53:36: [SM] [0] GetClientTeam
L 07/28/2020 - 17:53:36: [SM] [1] Line 46, C:\Users\Igorik\Desktop\compil6492\addons\sourcemod\scripting\molotov_friendlyfire.sp::SDK_OnTakeDamage
L 07/28/2020 - 17:53:36: [SM] Exception reported: Client 7 is not in game
L 07/28/2020 - 17:53:36: [SM] Blaming: molotov_friendlyfire.smx
L 07/28/2020 - 17:53:36: [SM] Call stack trace:
L 07/28/2020 - 17:53:36: [SM] [0] GetClientTeam
L 07/28/2020 - 17:53:36: [SM] [1] Line 46, C:\Users\Igorik\Desktop\compil6492\addons\sourcemod\scripting\molotov_friendlyfire.sp::SDK_OnTakeDamage
L 07/28/2020 - 17:53:36: [SM] Exception reported: Client 7 is not in game
L 07/28/2020 - 17:53:36: [SM] Blaming: molotov_friendlyfire.smx
L 07/28/2020 - 17:53:36: [SM] Call stack trace:
L 07/28/2020 - 17:53:36: [SM] [0] GetClientTeam
L 07/28/2020 - 17:53:36: [SM] [1] Line 46, C:\Users\Igorik\Desktop\compil6492\addons\sourcemod\scripting\molotov_friendlyfire.sp::SDK_OnTakeDamage
L 07/28/2020 - 17:53:36: [SM] Exception reported: Client 7 is not in game
L 07/28/2020 - 17:53:36: [SM] Blaming: molotov_friendlyfire.smx
L 07/28/2020 - 17:53:36: [SM] Call stack trace:
L 07/28/2020 - 17:53:36: [SM] [0] GetClientTeam
L 07/28/2020 - 17:53:36: [SM] [1] Line 46, C:\Users\Igorik\Desktop\compil6492\addons\sourcemod\scripting\molotov_friendlyfire.sp::SDK_OnTakeDamage
L 07/28/2020 - 17:53:36: [SM] Exception reported: Client 7 is not in game
L 07/28/2020 - 17:53:36: [SM] Blaming: molotov_friendlyfire.smx
L 07/28/2020 - 17:53:36: [SM] Call stack trace:
L 07/28/2020 - 17:53:36: [SM] [0] GetClientTeam
L 07/28/2020 - 17:53:36: [SM] [1] Line 46, C:\Users\Igorik\Desktop\compil6492\addons\sourcemod\scripting\molotov_friendlyfire.sp::SDK_OnTakeDamage
L 07/28/2020 - 17:53:37: [SM] Exception reported: Client 7 is not in game
L 07/28/2020 - 17:53:37: [SM] Blaming: molotov_friendlyfire.smx
L 07/28/2020 - 17:53:37: [SM] Call stack trace:
L 07/28/2020 - 17:53:37: [SM] [0] GetClientTeam
L 07/28/2020 - 17:53:37: [SM] [1] Line 46, C:\Users\Igorik\Desktop\compil6492\addons\sourcemod\scripting\molotov_friendlyfire.sp::SDK_OnTakeDamage
L 07/28/2020 - 17:53:37: [SM] Exception reported: Client 7 is not in game
L 07/28/2020 - 17:53:37: [SM] Blaming: molotov_friendlyfire.smx
L 07/28/2020 - 17:53:37: [SM] Call stack trace:
L 07/28/2020 - 17:53:37: [SM] [0] GetClientTeam
L 07/28/2020 - 17:53:37: [SM] [1] Line 46, C:\Users\Igorik\Desktop\compil6492\addons\sourcemod\scripting\molotov_friendlyfire.sp::SDK_OnTakeDamage
L 07/28/2020 - 17:53:37: [SM] Exception reported: Client 7 is not in game
L 07/28/2020 - 17:53:37: [SM] Blaming: molotov_friendlyfire.smx
L 07/28/2020 - 17:53:37: [SM] Call stack trace:
L 07/28/2020 - 17:53:37: [SM] [0] GetClientTeam
L 07/28/2020 - 17:53:37: [SM] [1] Line 46, C:\Users\Igorik\Desktop\compil6492\addons\sourcemod\scripting\molotov_friendlyfire.sp::SDK_OnTakeDamage
L 07/28/2020 - 17:53:37: [SM] Exception reported: Client 7 is not in game
L 07/28/2020 - 17:53:37: [SM] Blaming: molotov_friendlyfire.smx
L 07/28/2020 - 17:53:37: [SM] Call stack trace:
L 07/28/2020 - 17:53:37: [SM] [0] GetClientTeam
L 07/28/2020 - 17:53:37: [SM] [1] Line 46, C:\Users\Igorik\Desktop\compil6492\addons\sourcemod\scripting\molotov_friendlyfire.sp::SDK_OnTakeDamage
L 07/28/2020 - 19:26:39: Error log file session closed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.