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

[L4D2] Meteor Hunter


Post New Thread Reply   
 
Thread Tools Display Modes
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 08-05-2020 , 16:19   Re: [L4D2] Meteor Hunter
Reply With Quote #11

Quote:
Originally Posted by fbef0102 View Post
Thanks, Lux, one more question, what if I use CreateDataTimer?
should I also write TIMER_DATA_HNDL_CLOSE?
PHP Code:
CreateDataTimer(0.3,CreateRing,hbPack,TIMER_FLAG_NO_MAPCHANGE|TIMER_DATA_HNDL_CLOSE); 
In short no.

PHP Code:
/**
 * Creates a timer associated with a new datapack, and returns the datapack.
 * @note The datapack is automatically freed when the timer ends.
 * @note The position of the datapack is not reset or changed for the timer function.
 *
 * @param interval      Interval from the current game time to execute the given function.
 * @param func          Function to execute once the given interval has elapsed.
 * @param datapack      The newly created datapack is passed though this by-reference
 *                      parameter to the timer callback function.
 * @param flags         Timer flags.
 * @return              Handle to the timer object.  You do not need to call CloseHandle().
 */
stock Handle CreateDataTimer(float intervalTimer funcHandle &datapackint flags=0)
{
    
datapack = new DataPack();
    
flags |= TIMER_DATA_HNDL_CLOSE;
    return 
CreateTimer(intervalfuncdatapackflags);

__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 08-05-2020 , 16:22   Re: [L4D2] Meteor Hunter
Reply With Quote #12

Quote:
Originally Posted by Lux View Post
In short no.

PHP Code:
/**
 * Creates a timer associated with a new datapack, and returns the datapack.
 * @note The datapack is automatically freed when the timer ends.
 * @note The position of the datapack is not reset or changed for the timer function.
 *
 * @param interval      Interval from the current game time to execute the given function.
 * @param func          Function to execute once the given interval has elapsed.
 * @param datapack      The newly created datapack is passed though this by-reference
 *                      parameter to the timer callback function.
 * @param flags         Timer flags.
 * @return              Handle to the timer object.  You do not need to call CloseHandle().
 */
stock Handle CreateDataTimer(float intervalTimer funcHandle &datapackint flags=0)
{
    
datapack = new DataPack();
    
flags |= TIMER_DATA_HNDL_CLOSE;
    return 
CreateTimer(intervalfuncdatapackflags);

oh ok, thanks you two for teaching.
__________________

Last edited by HarryPotter; 08-05-2020 at 16:22.
HarryPotter is offline
CrazMan
Member
Join Date: Jun 2022
Old 02-06-2023 , 05:41   Re: [L4D2] Meteor Hunter
Reply With Quote #13

Good day!
This plugin is for versus or for co-op?
CrazMan is offline
ddd123
Senior Member
Join Date: May 2021
Old 02-07-2023 , 01:52   Re: [L4D2] Meteor Hunter
Reply With Quote #14

Quote:
Originally Posted by CrazMan View Post
Good day!
This plugin is for versus or for co-op?
Work on both
And you have option to turn off/on on l4d_meteor_hunter.cfg

Quote:
- l4d_meteor_hunter_modes
- l4d_meteor_hunter_modes_off

Last edited by ddd123; 02-07-2023 at 01:56.
ddd123 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 18:16.


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