Raised This Month: $ Target: $400
 0% 

Custom Flashlight v0.5.4 (10/20/09)


Post New Thread Reply   
 
Thread Tools Display Modes
nitz
Member
Join Date: Oct 2007
Old 11-04-2008 , 18:00   Re: Custom Flashlight v0.4.0 (07/30/08)
Reply With Quote #51

Hello, I've been using this plugin for a while, together with a night mode plugin, however I have noticed something on my server:

Whenever the map was dark, people would use the flashlight often and then.. I noticed they all were complained about lag... It was just to turn off the flashlight and the problem was gone. Currently I have turned off the plugin so there would be no lag at all... I am running 2 servers of 20 players with 8mb upload/30download on a Xeon quad core, 8gb ram box.

I have done some tests, with 20 players playing arround with the flashlights there would be massive overflowed flood in the console or the latency would suffer of pikes from 20 to 100ms..

Any thoughts?
nitz is offline
Kachoo!
Member
Join Date: Aug 2008
Location: Argentina
Old 02-12-2009 , 12:33   Re: Custom Flashlight v0.4.0 (07/30/08)
Reply With Quote #52

Hi, im using this plugin on my zombie plague server, but there is a problem ...

When you have the flashlight On, and you turn into first zombie, you cant turn off the flashlight ...

Can you tell me what to do for the flash go off when you are a zombie ?
__________________
M-n-mal AR+
Kachoo! is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-12-2009 , 13:23   Re: Custom Flashlight v0.4.0 (07/30/08)
Reply With Quote #53

Zombie Plague has its own flashlight system, don't run this plugin.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
niask
BANNED
Join Date: Oct 2008
Location: Kaluga, Russia
Old 02-23-2009 , 05:10   Re: Custom Flashlight v0.4.0 (07/30/08)
Reply With Quote #54

Custom flashlight in Zombie Plague mod is laggy, and this plugin works great.
niask is offline
Send a message via ICQ to niask
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-03-2009 , 13:15   Re: Custom Flashlight v0.5.0 (04/03/09)
Reply With Quote #55

Updated with engine module and some default amxx natives since it should save some cpu.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
HAARP
Member
Join Date: Jun 2007
Old 04-17-2009 , 23:25   Re: Custom Flashlight v0.5.1 (04/04/09)
Reply With Quote #56

Will you see other players' shines with this or will they still simply glow in the dark when they use their flashlights??
HAARP is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-18-2009 , 20:16   Re: Custom Flashlight v0.5.1 (04/04/09)
Reply With Quote #57

Quote:
Originally Posted by HAARP View Post
Will you see other players' shines with this or will they still simply glow in the dark when they use their flashlights??
This plugin change flashlight color (in fact it replaces original flashlight), that's all...
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-09-2009 , 23:48   Re: Custom Flashlight v0.5.1 (04/04/09)
Reply With Quote #58

I was reading through your code, and the TE_DLIGHT doesn't match up.

Code:
// message_const.inc

#define TE_DLIGHT                   27       // Dynamic light, effect world, minor entity effect
// write_byte(TE_DLIGHT)
// write_coord(position.x)
// write_coord(position.y)
// write_coord(position.z)
// write_byte(radius in 10's) 
// write_byte(red)
// write_byte(green)
// write_byte(blue)
// write_byte(brightness)
// write_byte(life in 10's)
// write_byte(decay rate in 10's)
Code:
Make_FlashLight(id) {     // ...     if( g_iShowAll )     {         message_begin(MSG_BROADCAST, SVC_TEMPENTITY)     }     else     {         message_begin(MSG_ONE_UNRELIABLE, SVC_TEMPENTITY, _, id)     }     write_byte( TE_DLIGHT )// write_byte(TE_DLIGHT)     write_coord( iAim[0] )// write_coord(position.x)     write_coord( iAim[1] )// write_coord(position.y)     write_coord( iAim[2] )// write_coord(position.z)     write_byte( g_iRadius )// write_byte(radius in 10's)     write_byte( (g_iColor[id][Red]<<8) / iAttn )// write_byte(red)     write_byte( (g_iColor[id][Green]<<8) / iAttn )// write_byte(green)     write_byte( (g_iColor[id][Blue]<<8) / iAttn )// write_byte(blue)     write_byte( LIFE )// write_byte(brightness)     write_byte( iDecay )// write_byte(life in 10's)     message_end()// write_byte(decay rate in 10's) }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
mYm
Junior Member
Join Date: Nov 2008
Old 05-10-2009 , 01:47   Re: Custom Flashlight v0.5.1 (04/04/09)
Reply With Quote #59

screenshots available??
mYm is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-10-2009 , 07:25   Re: Custom Flashlight v0.5.1 (04/04/09)
Reply With Quote #60

Quote:
Originally Posted by Exolent[jNr] View Post
I was reading through your code, and the TE_DLIGHT doesn't match up.
Weird, same missing argument in Avalanche's plugin (from where i took the message), but the message is sent without any problem...
Also, in HLSDK, the only message i can find has same args, may be the description is wrong ?
And last, i'm curious why you read this code
Code:
		MESSAGE_BEGIN( MSG_BROADCAST, SVC_TEMPENTITY );
			WRITE_BYTE(TE_DLIGHT);
			WRITE_COORD(vecMid.x);	// X
			WRITE_COORD(vecMid.y);	// Y
			WRITE_COORD(vecMid.z);	// Z
			WRITE_BYTE( 20 );		// radius * 0.1
			WRITE_BYTE( 255 );		// r
			WRITE_BYTE( 180 );		// g
			WRITE_BYTE( 100 );		// b
			WRITE_BYTE( 20 );		// time * 10
			WRITE_BYTE( 0 );		// decay * 0.1
		MESSAGE_END( );
Quote:
Originally Posted by mYm View Post
screenshots available??
Better to try it ;)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 01:02.


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