Raised This Month: $404 Target: $400
 101% 

Showing results 1 to 25 of 500
Search took 0.07 seconds.
Search: Posts Made By: pRED*
Forum: Coding MM:S Plugins & SM Extensions 09-10-2011, 20:11
Replies: 16
Views: 5,092
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: 22,369
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: 4,431
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: 4,431
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: 2,570
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: 4,431
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: 2,678
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: 3,980
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,116
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: 1,794
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: 3,946
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: 975
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,255
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,027
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: 4,608
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: 4,608
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,165
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: 885
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: 7,264
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: 7,277
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: 3,840
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: 30,534
Posted By pRED*
Forum: General 04-20-2010, 19:11
Replies: 15
Views: 2,486
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: 2,486
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: 978
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 20:29.


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