Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [Script] Hooks.dll
[Script] Hooks.dll [message #369904] Sun, 01 February 2009 10:09 Go to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
Please follow instalation instructions carefuly.

I've created a simple dll that contains some of the hooks that I've used.

Simply create 2 new files in your project and add the following code.

"Hooks.h"
Toggle Spoiler




"Hooks.cpp"
Toggle Spoiler



Make sure you call
Load_Hooks();





Make sure you load the file attached into the server before you call Load_Hooks.
If you use SSGM, just load it as a plugin in the 01 slot.


Here is a sample SSGM plugin "plugin.cpp" file that uses this:

Toggle Spoiler




Some of the hook functions allow you to return a bool. For example, the chat hook. If you return 0 you BLOCK the message. With the chat hook, you can also change the message.

bool Chat_Hook(int PlayerID, int Type, WideStringClass &Message, int Target)
{
	Message.Format("Hello world!"); //now everyone will always say "Hello world!"
	return 1;
}








All of these hooks are compatable with RR, scripts and BIATCH as far as I know. If not, give me a shout.


Updated download.
  • Attachment: Hooks.dll
    (Size: 80.00KB, Downloaded 217 times)

[Updated on: Tue, 03 February 2009 00:31]

Report message to a moderator

Re: [Script] Hooks.dll [message #369906 is a reply to message #369904] Sun, 01 February 2009 10:12 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
In Love
Re: [Script] Hooks.dll [message #369910 is a reply to message #369904] Sun, 01 February 2009 10:31 Go to previous messageGo to next message
cAmpa is currently offline  cAmpa
Messages: 597
Registered: March 2006
Karma: 0
Colonel
Great release, Good work man! Thumbs Up

Bückstabü!
Re: [Script] Hooks.dll [message #369949 is a reply to message #369904] Sun, 01 February 2009 14:38 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
HOLY SEXINESS!
In Love


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: [Script] Hooks.dll [message #369952 is a reply to message #369904] Sun, 01 February 2009 14:42 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
NICE!! Big Ups

http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: [Script] Hooks.dll [message #369963 is a reply to message #369952] Sun, 01 February 2009 17:12 Go to previous messageGo to next message
YazooGang is currently offline  YazooGang
Messages: 742
Registered: August 2008
Location: US
Karma: 0
Colonel
What does this do?
Re: [Script] Hooks.dll [message #369967 is a reply to message #369963] Sun, 01 February 2009 17:29 Go to previous messageGo to next message
Caveman is currently offline  Caveman
Messages: 2476
Registered: July 2005
Location: Wales, UK
Karma: 0
General (2 Stars)

Well if you dont know what it does then you're most likely not going to have a use for it.

CarrierII wrote

BLUEHTHEN YOU AR NOT JUST A BIG CHEATAS AND YOU THE BIG HEAD JUST YOU USE FLY H4X FUCK YOU BIG CHEATAS YOUR CHEATZ IS BAD YOU WANT I WRAUGHT THIS YOUR CHEATZ IS BAD HEY IS 1 YEAR YOUR PROMESS A FLY HAX IN MULTIPLAYER AND IS DONT JUST TROOPRM02 I TELL IT ALL WHO REPLYER IN THIS FORUM YOU CHEATZ

Please don't make me type something like that again, not using puntuation is annoying.


http://r9.fodey.com/2158/bc450f3ca15045e9bdd7651fa49f3a0a.0.gif
Re: [Script] Hooks.dll [message #369968 is a reply to message #369967] Sun, 01 February 2009 17:31 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
Caveman wrote on Sun, 01 February 2009 16:29

Well if you dont know what it does then you're most likely not going to have a use for it.

True but im also wondering, I have a idea but Id like to know aswell
Re: [Script] Hooks.dll [message #369971 is a reply to message #369904] Sun, 01 February 2009 18:22 Go to previous messageGo to next message
raven
Messages: 595
Registered: January 2007
Location: Toronto, Ontario
Karma: 0
Colonel
Wow, this is awesome. Thanks RoShamBo http://www.renegadeforums.com/images/smiley_icons/thumbup.gif

-Jelly Administrator
-Exodus Administrator
Re: [Script] Hooks.dll [message #369986 is a reply to message #369904] Sun, 01 February 2009 21:43 Go to previous messageGo to next message
Ethenal is currently offline  Ethenal
Messages: 2532
Registered: January 2007
Location: US of A
Karma: 0
General (2 Stars)

Very nice release. Big Ups

-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29

Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade Thumbs Up

Re: [Script] Hooks.dll [message #369987 is a reply to message #369904] Sun, 01 February 2009 21:53 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
wat does it do
Re: [Script] Hooks.dll [message #369988 is a reply to message #369967] Sun, 01 February 2009 21:55 Go to previous messageGo to next message
raven
Messages: 595
Registered: January 2007
Location: Toronto, Ontario
Karma: 0
Colonel
Caveman wrote on Sun, 01 February 2009 18:29

Well if you dont know what it does then you're most likely not going to have a use for it.



-Jelly Administrator
-Exodus Administrator
Re: [Script] Hooks.dll [message #369989 is a reply to message #369988] Sun, 01 February 2009 22:03 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
raven wrote on Sun, 01 February 2009 20:55

Caveman wrote on Sun, 01 February 2009 18:29

Well if you dont know what it does then you're most likely not going to have a use for it.



Don't give a fuck Im curious about what it is nothings wrong with that I just want an answer.....damn....

does a chat hook show the serial and etc or something?

[Updated on: Sun, 01 February 2009 22:05]

Report message to a moderator

Re: [Script] Hooks.dll [message #369992 is a reply to message #369904] Mon, 02 February 2009 00:08 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
I do plan to add Main_Think_Loop hook, Renlog hook, BHS_Renlog_Hook, Bio Hook (players joining game), BIATCH hook, Pre-Join hook (map loading) and start button hook (players in the start screen).

The Bio hook may or may not be included because it's difficult to get BIATCH to like it.

[Updated on: Mon, 02 February 2009 00:12]

Report message to a moderator

Re: [Script] Hooks.dll [message #370036 is a reply to message #369992] Mon, 02 February 2009 07:08 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
RoShamBo wrote on Mon, 02 February 2009 00:08

I do plan to add Main_Think_Loop hook, Renlog hook, BHS_Renlog_Hook, Bio Hook (players joining game), BIATCH hook, Pre-Join hook (map loading) and start button hook (players in the start screen).

The Bio hook may or may not be included because it's difficult to get BIATCH to like it.


I know reborn would love you for the renlog hook Razz
Re: [Script] Hooks.dll [message #370088 is a reply to message #369989] Mon, 02 February 2009 13:22 Go to previous messageGo to next message
CarrierII is currently offline  CarrierII
Messages: 3804
Registered: February 2006
Location: England
Karma: 0
General (3 Stars)

SSnipe wrote on Mon, 02 February 2009 05:03

raven wrote on Sun, 01 February 2009 20:55

Caveman wrote on Sun, 01 February 2009 18:29

Well if you dont know what it does then you're most likely not going to have a use for it.



Don't give a fuck Im curious about what it is nothings wrong with that I just want an answer.....damn....

does a chat hook show the serial and etc or something?


No, this is for script writers. It lets them hook on to events within the game easily.

You could use the chat hook for a (better) language filter) for example.



Renguard is a wonderful initiative
Toggle Spoiler
Re: [Script] Hooks.dll [message #370089 is a reply to message #369904] Mon, 02 February 2009 13:25 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
Wow this is awesome.

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: [Script] Hooks.dll [message #370101 is a reply to message #369904] Mon, 02 February 2009 14:23 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
Can't this be added to scripts 4.0??? Big Ups

http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: [Script] Hooks.dll [message #370105 is a reply to message #369904] Mon, 02 February 2009 14:41 Go to previous messageGo to next message
cAmpa is currently offline  cAmpa
Messages: 597
Registered: March 2006
Karma: 0
Colonel
A good idea, the scripts chathook for example is a little bit limited.

Bückstabü!
Re: [Script] Hooks.dll [message #370164 is a reply to message #369904] Mon, 02 February 2009 23:40 Go to previous messageGo to next message
raven
Messages: 595
Registered: January 2007
Location: Toronto, Ontario
Karma: 0
Colonel
Quote:

Hooks
This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.


It loads fine on my desktop, but when I try to use it on my server, it gives me this error. I've talked with others and some get the same problem


-Jelly Administrator
-Exodus Administrator
Re: [Script] Hooks.dll [message #370168 is a reply to message #370105] Mon, 02 February 2009 23:54 Go to previous messageGo to next message
saberhawk
Messages: 1068
Registered: January 2006
Location: ::1
Karma: 0
General (1 Star)
cAmpa wrote on Mon, 02 February 2009 16:41

A good idea, the scripts chathook for example is a little bit limited.


In 3.4.4 maybe. Not so much in 4.0.
Re: [Script] Hooks.dll [message #370174 is a reply to message #369904] Tue, 03 February 2009 00:30 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
heh MVS was trying to sneak it's own crap into it. This should work.

  • Attachment: Hooks.dll
    (Size: 80.00KB, Downloaded 123 times)
Re: [Script] Hooks.dll [message #370177 is a reply to message #369904] Tue, 03 February 2009 00:50 Go to previous messageGo to next message
raven
Messages: 595
Registered: January 2007
Location: Toronto, Ontario
Karma: 0
Colonel
Worked beautifully. Thanks again =D

-Jelly Administrator
-Exodus Administrator
Re: [Script] Hooks.dll [message #370237 is a reply to message #370174] Tue, 03 February 2009 11:02 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
RoShamBo wrote on Tue, 03 February 2009 00:30

heh MVS was trying to sneak it's own crap into it. This should work.


I'll try when I get home. Very Happy Thanks! Thumbs Up
Re: [Script] Hooks.dll [message #373688 is a reply to message #369904] Thu, 26 February 2009 18:29 Go to previous messageGo to previous message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
Can you
StringClass tmp;
RequestSerial(ID, tmp);

In the Loading_Hook?

also if the loader is in a ban list, can u disconnect him before he joins?


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*

[Updated on: Thu, 26 February 2009 18:30]

Report message to a moderator

Previous Topic: C&C_Intro
Next Topic: [skins] PT Icons Redone
Goto Forum:
  


Current Time: Sat Nov 09 08:08:26 MST 2024

Total time taken to generate the page: 0.01346 seconds