AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Improve algorythm (https://forums.alliedmods.net/showthread.php?t=280502)

Kowalsky 03-18-2016 04:08

Improve algorythm
 
Is there any way to improve lasermine's algorythm? Right now in the available lasermines set beam and checks in player prethink and postthing. Wouldn't it be more efficient to make lasermine entity think every 0.1 second and do the beam and check the players in beam via traceline in the think event?

Chihuahuax 03-18-2016 04:16

Re: Improve algorythm
 
Check out hattrick's low cpu usage tripmine
You could extract some codes from there


All times are GMT -4. The time now is 09:18.

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