Raised This Month: $32 Target: $400
 8% 

[EXTENSION] Dukehacks


Post New Thread Reply   
 
Thread Tools Display Modes
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 05-08-2008 , 17:34   Re: [EXTENSION] Dukehacks (CSS)
Reply With Quote #21

Quote:
Originally Posted by DJ Tsunami View Post
First of all (yeah, I'm sure you know what's coming ), thanks again for the update. Blocking the round from ending works fine now. However, now dhTerminateRound doesn't work anymore? It was working fine before, printing to server console that it was terminating the round, with which delay and reason. But now, nothing Also, where would we be able to find a list of reasons and their corresponding numbers to use for dhTerminateRound? Thanks in advance.
I'll check the terminate round function and also add some constants to the .inc file for the reasons.

EDIT: It looks like it should be working. Make sure you set the round end blocking to false first. In the next update I'll change it to turn off the round end blocking temporarily when you call dhTerminateRound so you don't have to worry about it in the plugin.

Here are the defines I'll be including in the .inc file in the next update in case you want to use them now:
Code:
#define Target_Bombed                            1        // Target Successfully Bombed!
#define VIP_Escaped                                2        // The VIP has escaped!
#define VIP_Assassinated                        3        // VIP has been assassinated!
#define Terrorists_Escaped                        4        // The terrorists have escaped!
#define CTs_PreventEscape                        5        // The CT's have prevented most of the terrorists from escaping!
#define Escaping_Terrorists_Neutralized            6        // Escaping terrorists have all been neutralized!
#define Bomb_Defused                            7        // The bomb has been defused!
#define CTs_Win                                    8        // Counter-Terrorists Win!
#define Terrorists_Win                            9        // Terrorists Win!
#define Round_Draw                                10        // Round Draw!
#define All_Hostages_Rescued                    11        // All Hostages have been rescued!
#define Target_Saved                            12        // Target has been saved!
#define Hostages_Not_Rescued                    13        // Hostages have not been rescued!
#define Terrorists_Not_Escaped                    14        // Terrorists have not escaped!
#define VIP_Not_Escaped                            15        // VIP has not escaped!
#define Game_Commencing                            16        // Game Commencing!
                                                        // (Note: "Game Commencing!" resets team scores to 0)
__________________
"Good grammar is essential, Robin."
- Batman

Last edited by L. Duke; 05-08-2008 at 17:45.
L. Duke is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 05-28-2008 , 18:05   Re: [EXTENSION] Dukehacks (CSS)
Reply With Quote #22

Updated to version 0.0.0.3 which includes:
- a native to add events to the event queue (basically replaces the ent_fire client command exec)
- added game description changer
- added defines for the reasons used for TerminateRound
__________________
"Good grammar is essential, Robin."
- Batman
L. Duke is offline
Fredd
Veteran Member
Join Date: Jul 2007
Old 05-28-2008 , 18:40   Re: [EXTENSION] Dukehacks (CSS)
Reply With Quote #23

awesome good job man!
__________________
Need a private coder? AMXX, SourceMOD, MMS? PM me!
Fredd is offline
Obbi
Junior Member
Join Date: Jun 2007
Old 05-29-2008 , 15:12   Re: [EXTENSION] Dukehacks (CSS)
Reply With Quote #24

Ey Duke. Nice work. Are u going to upload the Sources again?
Obbi is offline
sodafr
Member
Join Date: Apr 2007
Location: Paris, France
Old 06-09-2008 , 20:08   Re: [EXTENSION] Dukehacks (CSS)
Reply With Quote #25

Since I installed this great extension my server crash...
I have located the problem (my personal country filter modification) and here is the little piece of code who is guilty

PHP Code:
#pragma semicolon 1
#include <sourcemod>


public Plugin:myinfo =
{
        
name "crash",
        
author "",
        
description "",
        
version "0.1",
        
url ""
};

public 
OnPluginStart()
{
        
HookEvent("player_connect"ev_PlayerConnectEventHookMode_Pre);
}

public 
ev_PlayerConnect(Handle:event, const String:name[], bool:dontBroadcast)
{
        return 
3;       // Plugin_Handled

It seems that only EventHookMode_Pre is in fault. Post doesnt crash.

I know it is still a beta. Thank you again for this great extension LDuke

ps : I forgot to mention that my server have tv_enable 1.
there is no crash when SourceTV is disabled.

Last edited by sodafr; 06-09-2008 at 20:13.
sodafr is offline
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 06-15-2008 , 21:33   Re: [EXTENSION] Dukehacks (CSS)
Reply With Quote #26

Hey there,
With this extension, does this give us the power to change a player's speed by means of hooking GetMaxSpeed?

Quote:
Originally Posted by L. Duke
I hook GetMaxSpeed on weapons to change the speeed. It's more complicated, but has a completely different feel than the lagged movement method. I used both in my AWE plugin, one as a speed modifier and the lagged movement as "adrenaline." They had a completely different feel.

The hardest part is keeping track of all the weapons. At first I was hooking them whenever a player picked one up and unhooking it when it was dropped, but I found that it was easier to sigscan for AddListenerEntity and create an entity listener. Now I hook weapons as they are created and unhook them as they are deleted.
I haven't forgotten

Now my question is how do I hook GetMaxSpeed, like you mentioned above?
Greyscale is offline
blade81
Senior Member
Join Date: Apr 2005
Old 06-17-2008 , 12:22   Re: [EXTENSION] Dukehacks (CSS)
Reply With Quote #27

Is it possible to change the team name?
__________________
blade81 is offline
raydan
Senior Member
Join Date: Aug 2006
Old 07-20-2008 , 12:00   Re: [EXTENSION] Dukehacks (CSS)
Reply With Quote #28

have 0.0.0.3 source code?
raydan is offline
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 08-26-2008 , 23:35   Re: [EXTENSION] Dukehacks (CSS)
Reply With Quote #29

Is this extension even supported anymore?

It seems that it's crashing my server when I use dhRoundEnd()

EDIT: Ok, dhRoundEnd() is working fine but hooking an event in Pre mode is crashing.. ?

EDIT2: Saw sodafr's post and noticed he said it doesn't crash if tv_enable is disabled, well I don't have it enabled and its still crashing.
__________________

Last edited by Greyscale; 08-26-2008 at 23:42.
Greyscale is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 09-30-2008 , 16:04   Re: [EXTENSION] Dukehacks
Reply With Quote #30

Added an Orangebox version with the entity listener forwards. I'm not supporting the older version since CSS will be going to the OB soon anyway.
__________________
"Good grammar is essential, Robin."
- Batman
L. Duke is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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