Raised This Month: $32 Target: $400
 8% 

[CS GO] Molotov dmg, Pause plugin, Knife dmg HELP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sakizao
Junior Member
Join Date: Jun 2020
Old 07-27-2020 , 16:05   [CS GO] Molotov dmg, Pause plugin, Knife dmg HELP
Reply With Quote #1

Hello I would like to ask your help in the following problems.

I have tried several plugins that are offered here but they all have bugs and do not work properly. I can't find one that really does what I need ..

1 ° - Plugin that blocks the friendlyfire through shots and knives but the damage with explosive grenades, flashes, molotovs must still give dmg to friendlyfire .. note: "ff_damage_reduction_other 0" blocks the damage from the molotov and knife, so if I disable it, I can't cause damage with the molotov, so i actually have to choose, or I enable and do damage with the knife and molotov, or I disable it and do not give damage on knife and molotov.. I just wanted my server to be like Most Pug servers, that actually implement a plugin that blocks friendlyfire on shots and knife attacks, but the rest continues doing damage on friendlyfire.


2 ° - A pause plugin with time limitation. Basically, during the competitive game each team is restricted to 3 pauses of 1 minute duration. As soon as the pause time runs out, the freezetime automatically resumes and the game continues.


Can someone help me?
I appreciate the help!

Last edited by sakizao; 07-28-2020 at 08:38.
sakizao is offline
Trum
AlliedModders Donor
Join Date: Jan 2017
Old 07-27-2020 , 18:01   Re: [CS GO] Molotov dmg, Pause plugin, Knife dmg HELP
Reply With Quote #2

Not sure about the first one. But the second one I would do something like this...

You make a function called like PauseGame and inside that you change the freeze time for the upcoming round and when the freeze time is over too just put the freeze time convar value back to normal.
Trum is offline
sakizao
Junior Member
Join Date: Jun 2020
Old 07-28-2020 , 08:37   Re: [CS GO] Molotov dmg, Pause plugin, Knife dmg HELP
Reply With Quote #3

Quote:
Originally Posted by Trum View Post
Not sure about the first one. But the second one I would do something like this...

You make a function called like PauseGame and inside that you change the freeze time for the upcoming round and when the freeze time is over too just put the freeze time convar value back to normal.
I think That would be a way to solve it.. and then just limit it to 3 times per side (terrorist or ct). what about if you are already in freezetime and tried making a pause action? it wouldnt be possible, only for the next round..
sakizao is offline
Trum
AlliedModders Donor
Join Date: Jan 2017
Old 07-28-2020 , 08:46   Re: [CS GO] Molotov dmg, Pause plugin, Knife dmg HELP
Reply With Quote #4

Once you call the PauseGame function you set a variabel to true, lets call it IsActiveTimout. If that variabel is true then you don’t call the PauseGame. But if the value is false, you call it. And when the timeout is over you set the value to false again.
In this way people can pause when there is NOT a pause ongoing.
Trum is offline
sakizao
Junior Member
Join Date: Jun 2020
Old 07-29-2020 , 11:02   Re: [CS GO] Molotov dmg, Pause plugin, Knife dmg HELP
Reply With Quote #5

Quote:
Originally Posted by Trum View Post
Once you call the PauseGame function you set a variabel to true, lets call it IsActiveTimout. If that variabel is true then you don’t call the PauseGame. But if the value is false, you call it. And when the timeout is over you set the value to false again.
In this way people can pause when there is NOT a pause ongoing.
I do not have experience programming...
sakizao is offline
Trum
AlliedModders Donor
Join Date: Jan 2017
Old 07-29-2020 , 12:14   Re: [CS GO] Molotov dmg, Pause plugin, Knife dmg HELP
Reply With Quote #6

You should contact someone that can do it for you then. Or learn, that’s the best option you have. But if you don’t want to learn contact someone. Keep in mind you might have to pay for their time. But don’t submit paid requests here, you won’t get that many responses.
Trum is offline
sakizao
Junior Member
Join Date: Jun 2020
Old 07-29-2020 , 19:56   Re: [CS GO] Molotov dmg, Pause plugin, Knife dmg HELP
Reply With Quote #7

Quote:
Originally Posted by Trum View Post
You should contact someone that can do it for you then. Or learn, that’s the best option you have. But if you don’t want to learn contact someone. Keep in mind you might have to pay for their time. But don’t submit paid requests here, you won’t get that many responses.
thankks for your help! i appreciate it!
sakizao is offline
netohd
Junior Member
Join Date: Aug 2020
Old 08-20-2020 , 15:06   Re: [CS GO] Molotov dmg, Pause plugin, Knife dmg HELP
Reply With Quote #8

Did you find any solution on the issue of knife damage? I have the same need
netohd is offline
sakizao
Junior Member
Join Date: Jun 2020
Old 08-30-2020 , 02:24   Re: [CS GO] Molotov dmg, Pause plugin, Knife dmg HELP
Reply With Quote #9

nope.. not yet
sakizao is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 08-30-2020 , 07:52   Re: [CS GO] Molotov dmg, Pause plugin, Knife dmg HELP
Reply With Quote #10

For number 2:
https://forums.alliedmods.net/showpo...41&postcount=2

Quote:
Originally Posted by Bacardi View Post
server convars
Code:
"mp_team_timeout_max" = "1"
FCVAR_GAMEDLL FCVAR_REPLICATED FCVAR_RELEASE 
- Number of timeouts each team gets per match.

"mp_team_timeout_time" = "60"
FCVAR_GAMEDLL FCVAR_REPLICATED FCVAR_RELEASE 
- Duration of each timeout.

"sv_vote_issue_timeout_allowed" = "1"
FCVAR_DEVELOPMENTONLY FCVAR_GAMEDLL 
- Can people hold votes to time out?
server commands
Code:
"timeout_terrorist_start"
FCVAR_GAMEDLL 

"timeout_ct_start"
FCVAR_GAMEDLL

*edit
seems vote not work... :/

*edit
More pauses
server commands
Code:
"mp_unpause_match"
FCVAR_GAMEDLL 
- Resume the match

"mp_pause_match"
FCVAR_GAMEDLL 
- Pause the match in the next freeze time

Timeout vote is restricted by IsPlayingAnyCompetitiveStrictRuleset.
Which is Classic and Classic competitive. game_type 0 game_mode 1




*edit
For number 1:

This should block teammate knife damage when FF enabled and ff_damage_reduction_other > 0
PHP Code:
#include <sdkhooks>

public void OnPluginStart()
{
    for(
int i 1<= MaxClientsi++)
    {
        if(
IsClientInGame(i)) OnClientPutInServer(i);
    }
}

public 
void OnClientPutInServer(int client)
{
    
SDKHook(clientSDKHook_OnTakeDamageAliveOnTakeDamageAlive);
}

public 
Action OnTakeDamageAlive(int victimint &attackerint &inflictorfloat &damageint &damagetype)
{
    
// Is not knife damage
    
if( damagetype != DMG_NEVERGIB DMG_SLASH ) return Plugin_Continue;

    
// filter any bad attacker index
    
if( inflictor <= ||  inflictor == victim || inflictor MaxClients ) return Plugin_Continue;

    
// teammate attack
    
if(GetClientTeam(victim) == GetClientTeam(inflictor)) return Plugin_Handled;
    
    return 
Plugin_Continue;

Attached Thumbnails
Click image for larger version

Name:	csgo timeout.png
Views:	94
Size:	81.2 KB
ID:	183461  
__________________
Do not Private Message @me

Last edited by Bacardi; 08-30-2020 at 12:52.
Bacardi is offline
Reply


Thread Tools
Display Modes

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 10:40.


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