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

Showing results 1 to 25 of 49
Search took 0.00 seconds.
Search: Posts Made By: [email protected]
Forum: Coding MM:S Plugins & SM Extensions 08-30-2006, 15:38
Replies: 2
Views: 3,275
Posted By [email protected]
Re: Compiling with newest release of the SDK

Thanks, that did the trick. I was digging through the compiler documentation looking for a flag or something, but just couldnt' find it.
Forum: Coding MM:S Plugins & SM Extensions 08-29-2006, 15:51
Replies: 2
Views: 3,275
Posted By [email protected]
Compiling with newest release of the SDK

Anyone having this problem?

I'm using CygWin with the crosscompiler that L.Duke and c0ldfyre posted. Since the SDK update, I can't compile anymore. I can't use the IVEngineServer class, because:...
Forum: Coding MM:S Plugins & SM Extensions 08-12-2006, 20:49
Replies: 5
Views: 1,834
Posted By [email protected]
Re: KeyValues beginner problem

You're using a different 'root' in each function, that's your problem. In your ServerActivate function, 'root' goes on the stack, you open then file, then at the end it goes out of scope and comes...
Forum: Coding MM:S Plugins & SM Extensions 05-12-2006, 20:30
Replies: 14
Views: 3,165
Posted By [email protected]
And this is why people should learn about...

And this is why people should learn about Inheritance and polymorphism BEFORE trying to code server plugins....

Make sure your plugin is derived as a IGameEventListener2
Look at the new...
Forum: Coding MM:S Plugins & SM Extensions 05-12-2006, 18:24
Replies: 14
Views: 3,165
Posted By [email protected]
change void YourPlugin::FireGameEvent(...

change
void YourPlugin::FireGameEvent( KeyValues *event )
to
void YourPlugin::FireGameEvent( IGameEvent *event )

Look at igameevents.h...it tells you what you need to know.
Forum: Coding MM:S Plugins & SM Extensions 05-12-2006, 16:39
Replies: 14
Views: 3,165
Posted By [email protected]
#include "gameevents.h" ... ... ...

#include "gameevents.h"
...
...
IGameEventManager2 *gameeventmanager = 0;
...
...
if ( !(gameeventmanager = (IGameEventManager2 *)interfaceFactory( INTERFACEVERSION_GAMEEVENTSMANAGER2, 0 )) )
...
Forum: Coding MM:S Plugins & SM Extensions 04-25-2006, 22:56
Replies: 3
Views: 1,253
Posted By [email protected]
Saving custom client-side values

I'm wondering if there's a way to save a client side custom value. Say for example, a client joins. If they want some feature of your plugin enabled for them, like damage reporting or something,...
Forum: Coding MM:S Plugins & SM Extensions 04-25-2006, 12:46
Replies: 5
Views: 2,090
Posted By [email protected]
Just thought I'd show you guys another approach...

Just thought I'd show you guys another approach to this. Yet another method to call the virtual functions. It's very similar to Mani's and PM's methods, but I templated it out so it's pretty easy...
Forum: Coding MM:S Plugins & SM Extensions 04-23-2006, 15:04
Replies: 5
Views: 2,160
Posted By [email protected]
I've looked at the SourceHook code a little bit,...

I've looked at the SourceHook code a little bit, is there hooking by offset?
Forum: Coding MM:S Plugins & SM Extensions 04-23-2006, 14:07
Replies: 5
Views: 2,160
Posted By [email protected]
Idea for a way to hook virtual functions.

So I was thinking about ways for hooking virtual functions, then I thought...what if you write a class with a pure virtual function of the same type as the one you want to hook. Then you have a...
Forum: Coding MM:S Plugins & SM Extensions 03-27-2006, 21:42
Replies: 7
Views: 2,293
Posted By [email protected]
Thanks guys you've been a lot of help. Way...

Thanks guys you've been a lot of help. Way easier you're way(s).



If I understand right, Windows is one pointer (a dword) and linux is two? Windows has just the code address, whereas linux...
Forum: Coding MM:S Plugins & SM Extensions 03-27-2006, 12:21
Replies: 7
Views: 2,293
Posted By [email protected]
Getting the address of a member function

I'm trying to get the address of a member function of a class, and wondering if there's an easier way to do this.

I first tried:
void *addr = someclass::somefunction;
But this gives a compile...
Forum: Coding MM:S Plugins & SM Extensions 02-15-2006, 09:12
Replies: 9
Views: 2,929
Posted By [email protected]
I've been trying something like this, but I'm...

I've been trying something like this, but I'm running into a problem. I've created my interface class, and an implementation of it, then EXPOSE_SINGLE_INTERFACE of it in one plugin. In another...
Forum: Coding MM:S Plugins & SM Extensions 02-14-2006, 02:33
Replies: 8
Views: 2,096
Posted By [email protected]
Do you mean "everyone" as in everyone in the...

Do you mean "everyone" as in everyone in the server already, or everyone as in "the player trying to join?" If you use a "kickid" on the player the first time you catch the event "player_spawn" for...
Forum: Coding MM:S Plugins & SM Extensions 02-13-2006, 12:08
Replies: 8
Views: 2,096
Posted By [email protected]
Couple bits of advice: 1. It's bad practice...

Couple bits of advice:

1. It's bad practice to pass a string object by value, you should pass it by reference since it will take up quite a bit of space on the stack.
2. I see no reason in your...
Forum: Coding MM:S Plugins & SM Extensions 02-09-2006, 02:23
Replies: 10
Views: 2,409
Posted By [email protected]
Usually even on client side commands you can...

Usually even on client side commands you can override it by installing your own command with the flag FCVAR_GAMEDLL though. That's the idea behind the "say_team" and "say" commands, which are not...
Forum: Coding MM:S Plugins & SM Extensions 02-08-2006, 09:05
Replies: 10
Views: 2,409
Posted By [email protected]
Re: Can't find some commands

EDIT: Actually, looks like you can't get the "menuselect" command when it comes from a radio command menu. You recieve it when it's from one of your own menus, but not when it's from a radio menu.
Forum: Coding MM:S Plugins & SM Extensions 02-07-2006, 19:14
Replies: 10
Views: 2,409
Posted By [email protected]
The thing is I don't want to find out when they...

The thing is I don't want to find out when they use it, I want to stop the menu from coming up sometimes, so they don't interfere with my ingame menus. To do that, I have a manager that keeps track...
Forum: Coding MM:S Plugins & SM Extensions 02-07-2006, 17:03
Replies: 10
Views: 2,409
Posted By [email protected]
Can't find some commands

I'm trying to hook "radio1", "radio2", "radio3", and "menuselect" for a CS:S plugin, but I can't seem to do it. I'm getting the command list using ICvar, then running through the list of commands,...
Forum: Coding MM:S Plugins & SM Extensions 02-03-2006, 08:10
Replies: 13
Views: 3,150
Posted By [email protected]
The functionality of the way I'm doing this works...

The functionality of the way I'm doing this works COMPLETELY FINE, as I've already said. It's just the strange random crash that happens. A random crash that will happen on maps without a bomb. I...
Forum: Coding MM:S Plugins & SM Extensions 02-02-2006, 19:30
Replies: 13
Views: 3,150
Posted By [email protected]
Only problem being that when a player is killed,...

Only problem being that when a player is killed, the drop bomb event gets fired before the player killed event...so you'll end up punishing them even though they only dropped the bomb since they were...
Forum: Coding MM:S Plugins & SM Extensions 01-31-2006, 22:44
Replies: 13
Views: 3,150
Posted By [email protected]
I know....BUUUUUUTTT...I already checked !pEntity...

I know....BUUUUUUTTT...I already checked !pEntity and pEntity->IsFree( ) at the beginning of the function. But I did notice the !pInfo->GetWeaponName, added that, thx.
Forum: Coding MM:S Plugins & SM Extensions 01-31-2006, 19:03
Replies: 13
Views: 3,150
Posted By [email protected]
Yeah, i think it might be a problem with it...

Yeah, i think it might be a problem with it interracting with another plugin, because I just ran it all day since last night, about 20 hours with no crash - but I only had my plugin loaded, I...
Forum: Coding MM:S Plugins & SM Extensions 01-30-2006, 19:11
Replies: 13
Views: 3,150
Posted By [email protected]
I also want to add that the server is also...

I also want to add that the server is also running, Mani's plugin, zBlock, PTB, statsx, and my plugin
Forum: Coding MM:S Plugins & SM Extensions 01-30-2006, 19:04
Replies: 13
Views: 3,150
Posted By [email protected]
Can't track down a bug

Well, I'm stumped. I have a plugin that will punish players who drop the bomb. It works fine....usually. Then every once in a while, the server will just crash. It's usually not when someone's...
Showing results 1 to 25 of 49

 
Forum Jump

All times are GMT -4. The time now is 06:11.


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