Rules
FAQ
Members List
Search
Register
Login
Raised This Month: $
Target: $400
0%
Search Forums
Show Threads
Show Posts
Advanced Search
Go to Page...
Page 1 of 20
1
2
3
11
>
Last
»
Showing results 1 to 25 of 500
Search took
0.03
seconds.
Search:
Posts Made By:
Emp`
Forum:
Code Snippets/Tutorials
07-19-2017, 18:41
Replies:
40
[INC] Beam Entities
Views:
35,719
Posted By
Emp`
Re: [INC] Beam Entities
This might be a helpful alternative:
stock get_distance_to_line(Float:pos_start[3], Float:pos_end[3], Float:pos_object[3])
{ //credits to KoST
new Float:vec_start_end[3],...
Forum:
Code Snippets/Tutorials
03-15-2017, 12:28
Replies:
7
Some simple solutions
Views:
2,295
Posted By
Emp`
Re: Some simple solutions
Seems to be lacking some key knowledge on tags, arrays, and globals.
I'm going to close this thread as it will probably lead to more confusion/arguing. For understanding the issues, see other...
Forum:
Scripting Help
02-22-2017, 12:09
Replies:
15
Trigger function with % chance
Views:
2,318
Posted By
Emp`
Re: Trigger function with % chance
stock bool Chance( iNum, iMult=100 )
return ( iNum * iMult >= random_num( 1, 100 * iMult ) );
if ( Chance( 5 ) )
{
//...
}
Forum:
Code Snippets/Tutorials
02-21-2017, 23:12
Replies:
41
[INC/STOCK] menu_set_timeout
Views:
11,796
Posted By
Emp`
Re: [INC/STOCK] menu_set_timeout
Yes (https://github.com/Geesu/wc3mods/blob/master/war3ft/war3ft/constants.inl), the taskids are TASK_* + player. Note -1 is unnecessary.
Tracking taskids is important if you need change_task...
Forum:
Scripting Help
02-20-2017, 11:14
Replies:
28
menu for x secondes
Views:
4,781
Posted By
Emp`
Re: menu for x secondes
Missed that part. :crab:
Here is a small clean up on your code:
#if defined _menutime_included
#endinput
#endif
#define _menutime_included
Forum:
Scripting Help
02-18-2017, 12:34
Replies:
28
menu for x secondes
Views:
4,781
Posted By
Emp`
Re: menu for x secondes
native show_menu(index, keys, const menu[], time = -1, const title[] = "");
native menu_display(id, menu, page=0, time=-1);
time = :crab:
Forum:
Scripting
12-20-2016, 19:38
Replies:
15
[CS:GO] Player Trails TE_SetupBeamFollow
Views:
4,732
Posted By
Emp`
Re: [CS:GO] Player Trails TE_SetupBeamFollow
IIRC the trail stops when the player is not moving; you can do a check to see if the player stopped and needs a new trail applied.
See [CS:GO] Player Trails (v1.1.0, 2016-11-04)...
Forum:
Scripting
10-12-2016, 22:56
Replies:
5
Pick random value from enum
Views:
2,504
Posted By
Emp`
Re: Pick random value from enum
enum Day
{
Sunday,
Monday,
Tuesday,
Wednesday,
Thursday,
Friday,
Saturday
}
Forum:
Code Snippets/Tutorials
09-14-2016, 23:29
Replies:
28
AMX Mod X Stocks (Custom useful stocks)
Views:
12,053
Posted By
Emp`
Re: AMX Mod X Stocks (Custom useful stocks)
ftfy
Forum:
Scripting
09-13-2016, 21:20
Replies:
18
Rotating an Array?
Views:
3,651
Posted By
Emp`
Re: Rotating an Array?
stock bool RotateArray( any[] iArray, int iSize, int iRotations = 1, bool bReverse = false )
{
if ( iSize <= 0 )
return false;
int iRotationCount, iRotatedValue, iElement;
int iLast =...
Forum:
Scripting
09-03-2016, 14:14
Replies:
921
New API and Syntax
Views:
335,671
Posted By
Emp`
Re: New API and Syntax
property int Int { public get() { return view_as < int > ( this ); }
}
or
property int Index { public get() { return view_as < int > ( this ); }
}
Forum:
Code Snippets/Tutorials
08-30-2016, 19:52
Replies:
100
[TUT] Bits, Bit-fields, and Bit-wise Operators
Views:
76,577
Posted By
Emp`
Re: [TUT] Bits, Bit-fields, and Bit-wise Operators
Alternative to KliPPy's:
stock BitShiftCount( x )
{
new i;
while ( x && !( x & 1 ) )
{
x >>= 1;
i++;
}
return i;
Forum:
Scripting
08-23-2016, 21:04
Replies:
921
New API and Syntax
Views:
335,671
Posted By
Emp`
Re: New API and Syntax
Why not both?
enum BothTest { Both_Zero }
methodmap BothTest
{
//...
}
Forum:
Scripting
08-23-2016, 18:36
Replies:
921
New API and Syntax
Views:
335,671
Posted By
Emp`
Re: New API and Syntax
?
enum BaseBoss
{
Boss_Zero
}
BaseBoss preselected; /* The next player chosen as boss */
Forum:
Snippets and Tutorials
07-31-2016, 15:13
Replies:
4
[INC] Data String Parameter
Views:
3,716
Posted By
Emp`
Re: [INC] Data String Parameter
Check out DString (https://forums.alliedmods.net/showthread.php?p=2441123#post2441123), it should accomplish what you are doing with a few other bugs features.
Forum:
Snippets and Tutorials
07-31-2016, 15:06
Replies:
21
[INC] DString - Dynamic Strings
Views:
10,524
Posted By
Emp`
Re: [INC] DString - Dynamic Strings
Update per:
/**************************************************************************
* *
* ...
Forum:
Extensions
03-15-2016, 12:58
Replies:
87
SourceTV Manager
Views:
63,592
Posted By
Emp`
Re: SourceTV Manager
Looks good, absolutely useful :bacon:
:crab:
Forum:
Plugins
01-22-2016, 23:11
Replies:
15
[CS:GO] Unlimited Reserve Ammo
Views:
20,936
Posted By
Emp`
Re: [CS:GO] Unlimited Reserve Ammo
public OnConfigsExecuted()
{
ConVar sv_infinite_ammo = FindConVar( "sv_infinite_ammo" );
int iFlags = sv_infinite_ammo.Flags;
sv_infinite_ammo.Flags &= ~FCVAR_CHEAT;
sv_infinite_ammo.SetInt(...
Forum:
Snippets and Tutorials
07-09-2015, 20:26
Replies:
21
[INC] DString - Dynamic Strings
Views:
10,524
Posted By
Emp`
Re: [INC] DString - Dynamic Strings
You are describing more of a compile error, but it is producing a run time error. No compile error makes me think that it is seeing the functions fine, even with the methodmap before the DString...
Forum:
Snippets and Tutorials
07-08-2015, 20:46
Replies:
21
[INC] DString - Dynamic Strings
Views:
10,524
Posted By
Emp`
Re: [INC] DString - Dynamic Strings
Does this happen when using the DString_Create function directly? It might be a bug with the interpretation of the public DString. Can you also try creating with: view_as < DString > new...
Forum:
Snippets and Tutorials
07-07-2015, 15:01
Replies:
21
[INC] DString - Dynamic Strings
Views:
10,524
Posted By
Emp`
Re: [INC] DString - Dynamic Strings
Does this reproduce the same error?
/**************************************************************************
* *
* ...
Forum:
Scripting
07-07-2015, 14:55
Replies:
7
[CS:GO] Wall walking
Views:
3,767
Posted By
Emp`
Re: [CS:GO] Wall walking
It looks like the trace rays might be hitting the player instead of the nearby wall; you can use TR_TraceRayFilter to avoid them.
Forum:
Snippets and Tutorials
06-25-2015, 14:47
Replies:
21
[INC] DString - Dynamic Strings
Views:
10,524
Posted By
Emp`
Re: [INC] DString - Dynamic Strings
Try this one out, I fixed the property line and added the missing 'new' in DString_Create. Creating the methodmap first allows the stock functions to use the methodmap; if you look at the stock...
Forum:
Snippets and Tutorials
06-24-2015, 15:31
Replies:
21
[INC] DString - Dynamic Strings
Views:
10,524
Posted By
Emp`
Re: [INC] DString - Dynamic Strings
The attached version now packs a length cell, removing the length cap from before.
DSTRING_BUFFERLEN is now only used with VFormat. (ie. Format and AddEx functions)
Per WildCard65, length is a...
Forum:
Snippets and Tutorials
06-23-2015, 20:38
Replies:
21
[INC] DString - Dynamic Strings
Views:
10,524
Posted By
Emp`
Re: [INC] DString - Dynamic Strings
Below is an alternate version I created with a methodmap.
Example done with methodmaps:
DString handle = DString_Create();
handle.add( "Hello!" );
handle.addex( " The GameTime is %f",...
Showing results 1 to 25 of 500
Page 1 of 20
1
2
3
11
>
Last
»
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
Server Discussion
Source Servers (SRCDS)
HL1 Servers (HLDS)
AMX Mod X
News
Bug Reports
General
Off-Topic
Plugins
Suggestions / Requests
Approved Plugins
New Plugin Submissions
Unapproved/Old Plugins
Translation Request
High-Traffic Plugins
GunGame
UAIO (Ultimate All-In-One Plugin)
xREDIRECT
CSDM
AMX Super
RuneMod
Zombie Plague Mod
SuperHero Mod
News
Tech Support
Scripting Help
Off-Topic / General Chat
Heroes
Suggestions / Requests
Approved Heroes
New Submissions
Unapproved/Old Heroes
Module Heroes
SuperHero Mod Stats - By 123
(OLD) Bug Reports
Scripting
Scripting Help
Code Snippets/Tutorials
Module Coding
Donor Access
SourceMod
News
General
Plugins
Plugins
Unapproved Plugins
Plugin/Gameplay Ideas and Requests
High-Traffic Plugins
SourceMod Anti-Cheat
Zombie:Reloaded
SourceBans / SourceBans++
VSH / Freak Fortress
Store
SM_Hosties
HLstatsX:CE
Scripting
Extensions
Snippets and Tutorials
Donor Access
Metamod: Source
Metamod:Source Plugins
Metamod:Source Questions
Coding MM:S Plugins & SM Extensions
Hosted Stuff
Asherkin's Plugins
TFDodgeball
TF2Items
SteamTools
Bail's Plugins
CSDM
CS:S DM
Off-Topic & Trash
Off-Topic
Trash
All times are GMT -4. The time now is
09:45
.
DMCA
-
Archive
-
Top
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode