AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   Machina "Sound" Block [Solved] (https://forums.alliedmods.net/showthread.php?t=181257)

napalm00 03-29-2012 00:35

Re: Machina "Sound" Block.. or alternative?
 
Quote:

Originally Posted by Powerlord (Post 1677810)
Righteous Bison and Pomson 6000 to name two.

Do they actually fire a single death event for both players killed by the same projectile? So far I've only seen them firing two separate death events :O unless something has changed.

Powerlord 03-29-2012 00:44

Re: Machina "Sound" Block.. or alternative?
 
Quote:

Originally Posted by napalm00 (Post 1677813)
Do they actually fire a single death event for both players killed by the same projectile? So far I've only seen them firing two separate death events :O unless something has changed.

The Machina also fires separate player_death events for each player penetrated... it has to, seeing as how you only have one victim userid per player_death event.

napalm00 03-29-2012 00:58

Re: Machina "Sound" Block.. or alternative?
 
Quote:

Originally Posted by Powerlord (Post 1677818)
The Machina also fires separate player_death events for each player penetrated... it has to, seeing as how you only have one victim userid per player_death event.

Yes, but while the machina displays only one kill message for each doublekill, the bison (or any other laz0r weapon) prints two death events. Not sure if it's just the game merging them, but checking the "playerpenetratecount" value for every laz0r weapon (bison, pomsom, mangler...) would be a good idea.

ReFlexPoison 03-29-2012 02:36

Re: Machina "Sound" Block [Solved]
 
Well if I may ask, will the code stated before give a large performance increase? I'm only running a ded. server from my house for friends and people wanting to hang out forgetting about ping issues. However, I still need to make sure the server will run properly like it did before.
Code:

#include <sourcemod>

public OnPluginStart() HookEvent("player_death", Event_PlayerDeath, EventHookMode_Pre);

public
Action:Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
{
   
SetEventInt(event, "playerpenetratecount", 0);
    return
Plugin_Continue;




napalm00 03-29-2012 08:15

Re: Machina "Sound" Block [Solved]
 
Literally you won't notice ANY performance drop whatsoever. Our discussion was just hypohetical and to be honest both ways work just fine,it's not that we're working with databases or keyvalues here.


All times are GMT -4. The time now is 03:10.

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