Raised This Month: $75 Target: $400
 18% 

Showing results 1 to 25 of 500
Search took 0.09 seconds.
Search: Posts Made By: DarthMan
Forum: Module Coding 05-24-2019, 06:37
Replies: 204
Sticky: Module: Rage
Views: 98,024
Posted By DarthMan
Re: Module: Rage

Idk if anyone else experienced this issue, but, for me, Rage doesn't run. Whenever I run the module, if a module or a handler exists, the server crashes. I tried CBaseEntity::TakeDamage as well as...
Forum: News 05-12-2019, 14:21
Replies: 65
Views: 16,033
Posted By DarthMan
Re: Development Roundup, We need you!

To me it worked fine after updating to beta TFC.
Forum: Scripting Help 05-07-2019, 13:50
Replies: 7
Views: 452
Posted By DarthMan
Re: [H3LP] Hooking CBasePlayer::StartObserver

I tested and it still crashes. It's as I said, a bug in the module that will never be fixed.

Edit: I had another plug-in calling it and it wasn't done in plugin_precache. Seems to be working fine...
Forum: Scripting Help 05-07-2019, 13:06
Replies: 7
Views: 452
Posted By DarthMan
Re: [H3LP] Hooking CBasePlayer::StartObserver

So, that's why it happens?
Hook must be registered in init/cfg/etc and the function in precache?
So it's like a rule, otherwise will throw the error?
Then how come even registering it in init if i...
Forum: Scripting Help 05-07-2019, 09:44
Replies: 7
Views: 452
Posted By DarthMan
Re: [H3LP] Hooking CBasePlayer::StartObserver

Ah, I see. Thanks for letting me know.
Also, I noticed a bug with Okapi.
If I do new hObserverValue = wl(okapi_mod_find_sig(hObserverSignature, sizeof hObserverSignature),...
Forum: Scripting Help 05-07-2019, 05:03
Replies: 7
Views: 452
Posted By DarthMan
Re: [H3LP] Hooking CBasePlayer::StartObserver

Solved by changing okapi_build_function to okapi_build_method :-)
Forum: Scripting Help 05-07-2019, 03:37
Replies: 7
Views: 452
Posted By DarthMan
[H3LP] Hooking CBasePlayer::StartObserver

Hello. I'm having issues hooking CBasePlayer::StartObserver using Okapi. It's my first time using the module, but I'm sure that everything was done correctly. The signature is also correct. In fact,...
Forum: Module Coding 04-29-2019, 18:40
Replies: 204
Sticky: Module: Rage
Views: 98,024
Posted By DarthMan
Re: Module: Rage

Could someone please make a handler and function for CBasePlayer::StartObserver ?
I tried something but the server seems to crash :-(.
Forum: Scripting Help 04-15-2019, 04:05
Replies: 14
Views: 697
Posted By DarthMan
Re: How to get keyvalue for trigger_changelevel?

If you want to do it specifically for trigger_changelevel, you could also use the FM_KeyValue forward, check if entity is valid then get it's classname by using get_kvd with KV_ClassName as keyvalue...
Forum: New Plugin Submissions 03-17-2019, 13:23
Replies: 15
Views: 2,471
Posted By DarthMan
Re: V.I.P System ( API + Web )

/*
@Param index "user index must be connected otherwise it will throw an error"
@Param password "vip password"
@Param method "login method via steamid or ip or name + password"
@Param bSaveInFile...
Forum: Scripting Help 03-14-2019, 08:19
Replies: 0
Views: 378
Posted By DarthMan
[ H3LP ] TFC: Hooking CBaseTeleporter::Finished

Hello. I am trying to hook CTFTeleporter::Finished using Orpheu but it doesn't seem to work fine under Linux, whereas on Windows, it works fine. Basically the first parameter of the function is the...
Forum: Module Coding 02-21-2019, 12:28
Replies: 204
Sticky: Module: Rage
Views: 98,024
Posted By DarthMan
Re: Module: Rage

Hey Arkshine, can u share the Linux and Windows module for firebullets?
Thanks !
Forum: Scripting 02-11-2019, 13:31
Replies: 12
Views: 1,228
Posted By DarthMan
Re: [H3LP] FindEntityInSphere

Yeah, I've been thinking of dking it the same way. Thanks, I guess this will help others looking for the same thing.
Forum: Scripting 02-11-2019, 11:45
Replies: 12
Views: 1,228
Posted By DarthMan
Re: [H3LP] FindEntityInSphere

Ah, never knew about it. I mean, I knew that * was a possibility on the goldsrc engine. Good idea and thanks for sharing.
Forum: Scripting 02-11-2019, 06:17
Replies: 2
Views: 882
Posted By DarthMan
Re: [ H3LP ] CreateArray

Thanks :-)
Seems to be working fine now.
Forum: Scripting 02-11-2019, 03:27
Replies: 12
Views: 1,228
Posted By DarthMan
Re: [H3LP] FindEntityInSphere

So for sphere it's a good idea to just start a loop from 1 to 2048 if I want to find all entities in a given distance, check if they are valid and get vector distance between player origin and entity...
Forum: Scripting 02-11-2019, 03:24
Replies: 2
Views: 882
Posted By DarthMan
[ H3LP ] CreateArray

Hello. I am trying to create a dynamic array.

if(g_aCheckPoints == INVALID_HANDLE)
g_aCheckPoints = CreateArray(ARRAY_LEN);

But it seems to return 0, I tried then checking if the array is an...
Forum: Scripting 02-10-2019, 16:27
Replies: 12
Views: 1,228
Posted By DarthMan
Re: [H3LP] FindEntityInSphere

Ye but that only finds by specific classname. And looping through entities is not a good practice anyways. For what I need now it could be enough, but I've other plugin where I wanna get all entities...
Forum: Scripting 02-06-2019, 05:47
Replies: 12
Views: 1,228
Posted By DarthMan
[H3LP] FindEntityInSphere

Hello. Can someone show me how to use FindEntityInSphere using sdktools?
I want to search for entities in sphere of 100.0 by looping.
On AMXX it can be done this way:
while((iEnt =...
Forum: Scripting 01-27-2019, 16:22
Replies: 9
Views: 1,087
Posted By DarthMan
Re: [ H3LP ] Distance to floor

Sure. I will check tomorrow night, since I am dealing with another more important issue right now.
Forum: Scripting 01-27-2019, 16:14
Replies: 5
Views: 987
Posted By DarthMan
Re: [ H3LP ] Parsing BSP File

Apparently berni said somewhere in the forum that it doesn't work (OnLevelInit forward), and that was sometimes in 2011.
Perhaps it just doesn't work on Fortress Forever and maybe other source...
Forum: Scripting 01-27-2019, 15:38
Replies: 5
Views: 987
Posted By DarthMan
Re: [ H3LP ] Parsing BSP File

I did that for a test, and it doesn't seem to work.

public Action OnLevelInit(const char[] szMapName, char szMapEntities[2097152])
{
if(!StrEqual(szMapName, "ff_xpress_b1", true))
return...
Forum: Scripting 01-27-2019, 15:21
Replies: 5
Views: 987
Posted By DarthMan
Re: [ H3LP ] Parsing BSP File

Action OnLevelInit(const char[] szMapName, char szMapEntities[2097152])
{
// ?
}

How would I do that exactly?
Is szMapEntities the char that holds the keys and values for each entity?
Forum: Scripting 01-27-2019, 14:40
Replies: 5
Views: 987
Posted By DarthMan
[ H3LP ] Parsing BSP File

Hello. I am trying to parse a bsp file to get the keys and values of each entity, but ti doesn't seem to work well. No text is parsed.


stock int strtok(const char[] szText, char[] szLeft, const...
Forum: Scripting 01-27-2019, 12:57
Replies: 9
Views: 1,087
Posted By DarthMan
Re: [ H3LP ] Distance to floor

stock bool TraceRayNoPlayers(const int iEnt, const int iMask, any iData)
{
if(iEnt == iData || IsPlayer(iEnt))
return false;

return true;
}

stock int IsPlayer(int iEnt)
{
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 22:20.


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