Raised This Month: $ Target: $400
 0% 

CSS DM Fix Crashes, damage and Negative Score


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Thaal_Rasha
Junior Member
Join Date: Jun 2010
Old 08-12-2010 , 01:36   CSS DM Fix Crashes, damage and Negative Score
Reply With Quote #1

This is a fix I came up with while waitting for Bailopan for an official solution (one day perhaps...)
Also because of the radar, i force every player on the same team, so all can use the radar, it seems more fair.

------------------------------------------------------------------------------------------------
Requirement: Mattie's Event Script has to be installed.

1. Set in your cstrike/cfg/server.cfg the following values:

Code:
mp_friendlyfire 0
mp_humanteam ct
(or mp_humanteam t if you want everyone as terrorists)

Setting friendly fire to 0 fix the damage on friendly as normal and don't crash the server with cssdm_ffa_enabled

2. Next in your cstrike/cfg/cssdm/cssdm.cfg :

Code:
cssdm_ffa_enabled "1"
3. Now put the folder of my eventscript that fixes the negative score in cstrike/addons/eventscripts/

In order fo it to load automatically, add in your cstrike/cfg/autoexec.cfg

Code:
mattie_eventscripts 1
eventscripts_subdirectory eventscripts
es_load cssdmfix
You're done, you can (re)start your server. I hope that helped.
Attached Files
File Type: zip cssdmfix.zip (380 Bytes, 269 views)

Last edited by Thaal_Rasha; 08-12-2010 at 06:53.
Thaal_Rasha is offline
musosoft
Senior Member
Join Date: Dec 2008
Location: Thailand
Old 08-12-2010 , 10:09   Re: CSS DM Fix Crashes, damage and Negative Score
Reply With Quote #2

Hi, I suggest you to remove that es thing...

Just change gamedata/cssdm.games.txt as follows:

Code:
			"IPointsForKill"
			{
				"windows"		"78"
				"linux"			"79"
				"mac"			"79"
			}
mp_friendlyfire could be 1
musosoft is offline
Thaal_Rasha
Junior Member
Join Date: Jun 2010
Old 08-12-2010 , 15:07   Re: CSS DM Fix Crashes, damage and Negative Score
Reply With Quote #3

Hello,

What you suggestion does exactly? Does it fixes server crashes and reduced damaged to teamates with friendly fire on?

the es thing i made just fixes the negative score.
Thaal_Rasha is offline
BAILOPAN
Join Date: Jan 2004
Old 08-13-2010 , 20:48   Re: CSS DM Fix Crashes, damage and Negative Score
Reply With Quote #4

Why use ES? DM is integrated with SourceMod. I'll put a fix up in the next day or two. Let's not have users install a bee hive that assaults people with bee-filed bees.

(That is, users shouldn't have to install entire other toolchains and then more plugins just to get a fix)
__________________
egg

Last edited by BAILOPAN; 08-13-2010 at 22:07.
BAILOPAN is offline
Thaal_Rasha
Junior Member
Join Date: Jun 2010
Old 08-18-2010 , 15:08   Re: CSS DM Fix Crashes, damage and Negative Score
Reply With Quote #5

I'm no developper, i just happen sometimes to make scripts with ES and that was the most straight forward for me to do it. Since no one posted anything for a long time to bypass the crash i thought it was better than nothing. As i said: it's just a temporary fix until yours is out
Thaal_Rasha is offline
lelik
New Member
Join Date: Jul 2010
Old 08-20-2010 , 19:05   Re: CSS DM Fix Crashes, damage and Negative Score
Reply With Quote #6

I made a similar script only Sourcemod, but it is better to make a written musosoft
Code:
public OnPluginStart()
{
    HookEvent("player_death", Event_PlayerDeath);
}

public Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
{    
    new attackerClient = GetClientOfUserId(GetEventInt(event, "attacker"));
    new victimClient = GetClientOfUserId(GetEventInt(event, "userid"));

    if (GetClientTeam(attackerClient) == GetClientTeam(victimClient) && attackerClient != victimClient)
    {
        new frags = GetClientFrags(attackerClient);
        frags += 2;
        SetEntProp(attackerClient, Prop_Data, "m_iFrags", frags);
    }
}

Last edited by lelik; 08-20-2010 at 19:09.
lelik is offline
Reply



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 18:48.


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