Raised This Month: $7 Target: $400
 1% 

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: pRED*
Forum: Coding MM:S Plugins & SM Extensions 09-10-2011, 20:11
Replies: 16
Views: 7,021
Posted By pRED*
Re: Hook CBaseEntity::FireBullets

SourceHook can only improve compatibility with other plugins when both plugins are sharing the same instance of it. This is true for MM:S plugins, but if you embed your own copy of SH, then you will...
Forum: Coding MM:S Plugins & SM Extensions 05-09-2011, 04:37
Replies: 72
Views: 27,713
Posted By pRED*
Re: NPC in CS:S

You shouldn't need to detour anything new.

Modify the CEntity::AcceptEntityInput handler to do what you want. Which I assume is exactly a copy paste of the sdk version, with a fallback (if the...
Forum: Coding MM:S Plugins & SM Extensions 01-01-2011, 20:03
Replies: 14
Views: 6,563
Posted By pRED*
Re: Detour in __usercall

I never said it was a nice option. This is the sort of thing that bintools was designed to handle.
Forum: Coding MM:S Plugins & SM Extensions 01-01-2011, 16:32
Replies: 14
Views: 6,563
Posted By pRED*
Re: Detour in __usercall

It looks like __usercall is IDA's name for a calling convention that it doesn't know.

Does this binary have link time code generation enabled?

If you disassemble your code you should see that...
Forum: Coding MM:S Plugins & SM Extensions 01-01-2011, 03:21
Replies: 10
Views: 3,786
Posted By pRED*
Re: Registering SM handle type

Of the 3 possible reasons that error could occur, only attempting to register an already existing name seems relevant.

The given code example looks to be fine, sure you didn't inadvertently fix...
Forum: Coding MM:S Plugins & SM Extensions 01-01-2011, 03:08
Replies: 14
Views: 6,563
Posted By pRED*
Re: Detour in __usercall

Assuming you are using CDetour (or something that works similarly), then you need to define the callback function with the same signature as the original code. The compiler should then generate...
Forum: Coding MM:S Plugins & SM Extensions 12-17-2010, 13:50
Replies: 9
Views: 4,059
Posted By pRED*
Re: Creating instance of a Class in server.dll

What is T in this example? Every existing entity type should already have a factory instance that will be in the dictionary.
Forum: Coding MM:S Plugins & SM Extensions 10-24-2010, 03:22
Replies: 4
Views: 6,577
Posted By pRED*
Re: Difference between edict and entity?

RemoveEdict wraps the engine function of the same name, and will fail if used to an entity without an edict.
Forum: Coding MM:S Plugins & SM Extensions 09-30-2010, 04:29
Replies: 2
Views: 2,740
Posted By pRED*
Re: Calculating a virtual function offset from a signature

On linux the vtable has a symbol, so you can look this up fairly trivially.

Windows would be more interesting, finding a byte signature that doesn't break would probably be difficult.

The...
Forum: General 09-19-2010, 21:00
Replies: 10
Views: 3,613
Posted By pRED*
Re: [Dark Messiah] How to block cvars?

Client side commands can't be blocked.
Forum: Scripting 09-19-2010, 04:12
Replies: 8
Views: 6,760
Posted By pRED*
Re: What is the usage of IsValidEntity & IsValidEdict?

This has actually changed since that blog post was written.

An entity is only understood by the game code, an edict is the engines representation of an entity (and used to network data about the...
Forum: Scripting 09-15-2010, 17:19
Replies: 4
Views: 1,513
Posted By pRED*
Re: Help: PrintToConsole() executing out of order

Welcome to the joys of UDP packets.

If order is important, use a timer to space out each line somewhat, or print all the data as one line (I think \n works..).
Forum: Coding MM:S Plugins & SM Extensions 08-21-2010, 17:12
Replies: 2
Views: 1,724
Posted By pRED*
Re: Server "say" equivalent

Try the SayText user message.
Forum: Coding MM:S Plugins & SM Extensions 07-24-2010, 18:45
Replies: 2
Views: 1,380
Posted By pRED*
Re: What exact source header files can I use?

As a general rule you should stick to files within public/.

The current example doesn't compile because the definition of UTIL_BloodSpray is inside a .cpp file someone in the sdk, and isn't being...
Forum: General 06-22-2010, 05:09
Replies: 20
Views: 7,318
Posted By pRED*
Re: Metamod/Sourcemod for TF2 Beta?

Probably out of luck as far as finding the packages go then.

You can always grab the source code, update to a tagged release version and compile it yourself. Not for the faint of heart.
Forum: General 06-22-2010, 03:45
Replies: 20
Views: 7,318
Posted By pRED*
Re: Metamod/Sourcemod for TF2 Beta?

Anti Christ: Please stop trying to be a moderator, I don't see how he can reasonably prove he has kept the gcf files and don't overly care.

The reason it doesn't work is likely to do with...
Forum: General 06-21-2010, 22:06
Replies: 4
Views: 1,916
Posted By pRED*
Re: Mac sourcepawn compiler?

If you actually only have the compiler dir as you said, that would be an issue. sm_version.h is in public/
Forum: Coding MM:S Plugins & SM Extensions 06-01-2010, 20:53
Replies: 2
Views: 1,519
Posted By pRED*
Re: sprintf problem ....

I'd suggest doing some introductory c++ work before jumping into writing a server plugin.

char *msg is only creating a pointer to a string, not a buffer to hold an actual string. And then as a...
Forum: Coding MM:S Plugins & SM Extensions 05-25-2010, 19:26
Replies: 32
Views: 11,446
Posted By pRED*
Re: Dynamic detouring library

Recon: When copy_bytes is passed 0 as the second parameter it will return a count of how many bytes need to be copied.

The third parameter (6) is how many bytes of space we are going to be...
Forum: General 05-10-2010, 20:45
Replies: 23
Views: 9,444
Posted By pRED*
Re: Sourcemod exploit ?

Fightsplit: Loading SourceMod on your client *does* modify dll's. And injects (so to speak) them into the hl2.exe process.

Both of which could be detected by VAC.

The fact that VAC doesn't...
Forum: General 04-26-2010, 04:59
Replies: 20
Views: 6,110
Posted By pRED*
Re: Plugin Optimization Help KeyValues

Why not just use clientprefs? It abstracts all the database complexities (including threading), and provides caching as well.
Forum: News 04-23-2010, 19:31
Replies: 92
Views: 42,081
Posted By pRED*
Forum: General 04-20-2010, 19:11
Replies: 15
Views: 4,362
Posted By pRED*
Re: Idea to find functions in memory

joaquimandrade: This is part of the -fPIC compile flag valve uses on it's linux builds.

Don't get me started on this.

Anyway, that function uses a sneaky assembly hack to retrieve the current...
Forum: General 03-25-2010, 01:27
Replies: 15
Views: 4,362
Posted By pRED*
Re: Idea to find functions in memory

http://pred.ampaste.net/m751dedc4
Forum: General 03-24-2010, 03:12
Replies: 5
Views: 1,959
Posted By pRED*
Re: Is there a GOOD way to upgrade SM?

SourceMod plugins are always backwards compatible. This means that plugins compiled against *any* version will run fine on the latest SM build.
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 00:24.


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