Raised This Month: $51 Target: $400
 12% 

Showing results 1 to 25 of 121
Search took 0.01 seconds.
Search: Posts Made By: AltPluzF4
Forum: Coding MM:S Plugins & SM Extensions 01-02-2011, 00:00
Replies: 14
Views: 6,673
Posted By AltPluzF4
Re: Detour in __usercall

For future reference...
This works, however it's probably a bad way to handle it. lol


DETOUR_DECL_STATIC2(PhysicsSweep, static void, Vector *, vecAbsDelta, trace_t *, pTrace)
{
...
Forum: Coding MM:S Plugins & SM Extensions 01-01-2011, 23:36
Replies: 14
Views: 6,673
Posted By AltPluzF4
Re: Detour in __usercall

Oh alright..... yeah, I completely forgot to try a grenade lol :-/
Forum: Coding MM:S Plugins & SM Extensions 01-01-2011, 21:11
Replies: 14
Views: 6,673
Posted By AltPluzF4
Re: Detour in __usercall

Could you please explain what you're trying to do anyway? I was going to attempt to create a detour on this function, but hell... putting a breakpoint on it, I can't seem to get it to fire. (Yes,...
Forum: Coding MM:S Plugins & SM Extensions 01-01-2011, 02:01
Replies: 14
Views: 6,673
Posted By AltPluzF4
Re: Detour in __usercall

Hm, could you please explain what you want? You can get a signature for the function, use the address returned with a detour library (I personally prefer/use pRED's CDetour)

Probably not helpful.....
Forum: Coding MM:S Plugins & SM Extensions 12-31-2010, 10:33
Replies: 369
Views: 262,416
Posted By AltPluzF4
Re: Signature Request Thread

; CTraceFilterEntity::ShouldHitEntity(IHandleEntity *, int)
_ZN18CTraceFilterEntity15ShouldHitEntityEP13IHandleEntityi...
Forum: Metamod:Source Questions 12-30-2010, 20:14
Replies: 5
Views: 6,306
Posted By AltPluzF4
Forum: Metamod:Source Questions 12-30-2010, 17:32
Replies: 5
Views: 6,306
Posted By AltPluzF4
Re: ED_Alloc: no free edicts. Can you help me please ? *-*

Edicts are networked entities... There's a maximum of 2048 I believe.
So you're probably reaching the engine's limit.
Forum: Coding MM:S Plugins & SM Extensions 12-28-2010, 00:37
Replies: 9
Views: 4,301
Posted By AltPluzF4
Re: Error compiling for linux on Ubuntu 10.04

*edit*nevermind, old makefiles
Forum: Scripting 12-27-2010, 23:14
Replies: 4
Views: 951
Posted By AltPluzF4
Re: Help with an if command please :)

new bool:g_bExecuted = false;
public Event_RoundStart(Handle:event,const String:name[],bool:dontBroadcast)
{
new playersE = GetClientCount(true);
new neededE = (10 - playersE);
if...
Forum: Scripting 12-24-2010, 11:40
Replies: 20
Views: 4,030
Posted By AltPluzF4
Re: Download Files with different Sizes

Alright, well... with all the test files you've given me, this works fine for me. Everything downloaded is an exact binary copy of what I downloaded through firefox.



#pragma semicolon 1...
Forum: Extensions 12-23-2010, 16:26
Replies: 284
Views: 113,758
Posted By AltPluzF4
Re: [EXTENSION] TF2 Team Balance Immunity

Don't blame pRED... That's your fault.
Here's a copy/paste of your code

void SetupDetours()
{
getPlayerDetour = DETOUR_CREATE_MEMBER(CTeam_GetPlayer, "GetPlayer");
...
Forum: Scripting 12-23-2010, 15:48
Replies: 20
Views: 4,030
Posted By AltPluzF4
Re: Download Files with different Sizes

#pragma semicolon 1
#include <sourcemod>
#include <socket>

new String:szHost[] = "files.fpsbanana.com";
new String:TheUrl[257];
new g_iChunk;

public OnConfigsExecuted()
{
Forum: Scripting 12-23-2010, 13:46
Replies: 20
Views: 4,030
Posted By AltPluzF4
Re: Download Files with different Sizes

Bleh, can you give me the url you're testing?
Forum: Scripting 12-23-2010, 13:39
Replies: 20
Views: 4,030
Posted By AltPluzF4
Re: Download Files with different Sizes

Hm? With the PrintToServer message, what does it display?
Forum: Scripting 12-23-2010, 13:15
Replies: 20
Views: 4,030
Posted By AltPluzF4
Re: Download Files with different Sizes

Alright, so, it's sending multiple chunks, each as a 4 byte cell representing a single byte...

This code should work for you.


#pragma semicolon 1
#include <sourcemod>
#include <socket>
...
Forum: Scripting 12-23-2010, 11:45
Replies: 20
Views: 4,030
Posted By AltPluzF4
Re: Download Files with different Sizes

Yeah, just as I expected. It's in 4 bytes.


HTTP/1.0 200 OK
Expires: Sat, 22 Jan 2011 16:39:12 GMT
Cache-Control: max-age=2592000
Content-Type: application/zip
Accept-Ranges: bytes
ETag:...
Forum: Scripting 12-23-2010, 11:17
Replies: 20
Views: 4,030
Posted By AltPluzF4
Re: Download Files with different Sizes

Sorry for the trouble, but can you please redownload the test.zip by using
WriteFile(hFile, _:receiveData, dataSize, 4);

Just so I can see what it does assuming it's using a 4 byte cell :-/
Forum: Scripting 12-23-2010, 10:49
Replies: 20
Views: 4,030
Posted By AltPluzF4
Re: Download Files with different Sizes

_: strips a tag.
WriteFile expects an untagged cell array. Passing a String: tagged array would throw a warning about tag mismatch.

Please refer here if you are still confused:...
Forum: Scripting 12-23-2010, 10:01
Replies: 20
Views: 4,030
Posted By AltPluzF4
Re: Download Files with different Sizes

You're working with binary files, not strings.
Socket's include file says it's binary safe as long as you use the dataSize.

new symbols = strlen(receiveData);
Is bad, since if the data contains...
Forum: General 12-22-2010, 06:51
Replies: 1
Views: 1,523
Posted By AltPluzF4
Re: [HELP] sql error msg.

This isn't a scripting problem, just a configuration one.
Go to /addons/sourcemod/configs/databases.cfg
There you must supply your password, and make any other changes relevant to your SQL server.
Forum: Scripting 12-22-2010, 06:47
Replies: 4
Views: 1,487
Posted By AltPluzF4
Re: How to use SortCustom2D correctly?

That's a one dimensional array. Use SortCustom1D.
A two dimensional array would be like:

new Float:clientOrigins[MAXPLAYERS+1][3];
Forum: Coding MM:S Plugins & SM Extensions 12-19-2010, 13:29
Replies: 369
Views: 262,416
Posted By AltPluzF4
Re: Signature Request Thread

No problem. Sorry it took so long, but I had to update my css installation and parse the binaries in IDA :-/
Forum: Coding MM:S Plugins & SM Extensions 12-19-2010, 12:54
Replies: 369
Views: 262,416
Posted By AltPluzF4
Re: Signature Request Thread

CCSPlayer::CSWeaponDrop(CBaseCombatWeapon *, bool, bool)

@_ZN9CCSPlayer12CSWeaponDropEP17CBaseCombatWeaponbb
\x55\x8B\xEC\x81\xEC\x2A\x2A\x2A\x2A\x89\x8D\x2A\x2A\x2A\x2A\xC6
Forum: Coding MM:S Plugins & SM Extensions 12-19-2010, 07:08
Replies: 369
Views: 262,416
Posted By AltPluzF4
Re: Signature Request Thread

Actually, that signature is very easy. Simply search string "should_never_see_this"
It comes up with a huge list of xrefs, since it's part of all ServerClassInit<T>

Go to the first function,...
Forum: Coding MM:S Plugins & SM Extensions 12-19-2010, 06:46
Replies: 369
Views: 262,416
Posted By AltPluzF4
Re: Signature Request Thread

I have IDA open anyway, so here's a quicky.

\x8B\x44\x24\x04\x8B\x54\x24\x08\x80\x61

You can use that to find it, and wildcard it if you need to... but I doubt a base function like that will...
Showing results 1 to 25 of 121

 
Forum Jump

All times are GMT -4. The time now is 15:56.


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