Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » SSGM Plug-in Console Commands  () 2 Votes
SSGM Plug-in Console Commands [message #401707] Sat, 05 September 2009 11:12 Go to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
Quote:


This is a plug-in designed to work with SSGM2.02 for cnc_renegade.
It was written by reborn from MP-Gaming.COM (fm_reborn@hotmail.com).

This is a first release version and probably has some bugs in it, with feedback I will fix bugs found.

This plugin has been very largely based on the old Black-cell release.
Just going to show how ahead of there time they was, and still today there code is relevant and can be recycled...




The following is a list of currently supported commands, and how to use them:

To use the following commands you have to create a file called "ConsoleCommand.txt" with one of the below commands in it, then drop it into the servers directory.
An example is in the download, and there is a movie in the gallery section of www.spencerelliott.co.uk showing you manually how to do it.
However, this is better left for regulators to take advantage of.

command getplayerobjectid playerID// Put the player ID number at the end, and a file called outputdump.txt will be updated, it will contain the players name, followed by there playerID, then there objectID
command attachscript ObjectID scriptname parameters // Commands->Attach_Script(Commands->Find_Object(ID),Text[3].c_str(),Text[4].c_str());
command kill number // consider number like this: Commands->Find_Object(number); Where number is the objectID
command setcredits ObjectID amount // Fairly self explanitory
command givecredits ObjectID amount // Fairly self explanitory
command givepoints ObjectID amount // Fairly self explanitory
command destroy number // consider number like this: Commands->Find_Object(number); Where number is the objectID
command forceoccupantexit ObjectID Seatnumber
command forceoccupantsexit number // Where number is the objectID number (obviously needs to be a vehicle)
command setpos ObjectID Xnumber Ynumber Znumber
command createobj ObjectID presetname amount//First ObjectID is the object that defines where you want it spawned, presetname is the name of the preset you want to spawn, and amount is how many of these you want to spawn.
command teamchange ObjectID newteamnumber
command sethealth ObjectID healthnumber
command setarmor ObjectID healthnumber
command distrans objectID // disables the transitions of the vehicle, ObjectID clearly needs to be a vehicle
command entrans objectID // enables the transitions of the vehicle, ObjectID clearly needs to be a vehicle
command setanim ObjectID animationname // doesn't loop anim
command setanim2 ObjectID animationname // loops anim
command movepos objectID Xnumber Ynumber Znumber
command attach ObjectID bonename modelname
command givepowerup ObjectID powerupname
command givepowerup2 playername powerupname
command sendmessage ObjectID message //Not a pm, youre sendning a custom... //Commands->Send_Custom_Event(0,Commands->Find_Object(ID),Message,0,0);
command setshield ObjectID shieldtypename //blamo etc etc
command cinematic ObjectID cinematicname // ObjectID is what you want the cinematic attached to.
command cinematic2 Xnumber Ynumber Znumber cinematicname //Creates an invis object at that location and attaches cinematic to it.
command freezeplayer ObjectID // player has no control
command unfreezeplayer ObjectID // Player is given control
command setmodel ObjectID modelname
command resetpoints ObjectID // sets a players points to zero
command resetcredits ObjectID
command disablephysics ObjectID //disable collisions
command enablephysics ObjectID // enable collisions
command makespy ObjectID // sets the object to be invisible to base defenses // Commands->Set_Is_Visible(Commands->Find_Object(ID),false);
command dropweapons ObjectID // clears a players weapons
command giveteampoints ObjectID pointsnumber // gives the player some points, but also gives all team mates the same amount of points too
command changecharacter ObjectID characterpreset
command teamnumber damageamount warheadname ObjectID // ObjectID is the gameobject of the damager
command repairbuildings teamnumber repairamount
command setmaxhealth ObjectID maxhealthnumber
command setmaxarmor ObjectID maxarmornumber
command setmaxhealthpercent ObjectID percentamount // sets the health of the object based on it's maxhealth
command setmaxarmorpercent ObjectID percentamount // sets the health of the object based on it's maxarmor
command grantrefill ObjectID
command grantpowerup powname
command flymode ObjectID // toggles fly mode for the player
command enablestealth ObjectID booleanflag // Commands->Enable_Stealth(Commands->Find_Object(ID),boolflag); //booleanflag should either be true or false. true for enabling stealth.
command damageobjectshalf // damages all buildings by 250.0f
command teleport ObjectID ObjectID //first ObjectID is the player to teleport, second ObjectID is the player to teleport too
command pt PlayerID //displayes the PT for the players team. Takes a player ID only, not an ObjectID




I don't run a renegade server, I have no real use for this plug-in and have made it for the sole reason to help other server owners.
If you use this plug-in and modify it, if you see a problem, either tell me, or preferably submit code. Don't be selfish, release the source code.
I believe it is only with this attitude that Renegade will continue to keep it's diminishing player base.
I really mean it, this thing took me quite a while to write, and if you're reading this, then I did it for you. So if you modify the source code
and add your own code, then release it.

To use this plug-in, refer to SSGM.ini in your SSGM2.02 server folder.
You'll need to add the .dll to the server folder, and make an entry in the [Plugins] section, mine looks like this:

[Plugins]
01=ConsoleCommands


I urge you visit my forums and my site @ MP-Gaming.COM. I would also like to direct you to Black-Cell.NET. There is a history of this game there that
most people are oblivious to, and without Black-Cell, none of the feature rich servers we have today would be here. They also have a renegade server
back up and running. Be sure to find it in the WOL server listings and join. It's hella fun.




I was going to make the first release allot slicker. With an asynchronous system that didn't rely on disk based files. Plus even more commands. However, I decided to release it like this to see if it is actually used or not or anyone feels it's worth pursuing. If anyone actually likes it or uses it I'll probably spend some time down the road making it better. But for now, this is how it is...

Can be found on my site here:

http://spencerelliott.co.uk/downloads.html



Re: SSGM Plug-in Console Commands [message #401714 is a reply to message #401707] Sat, 05 September 2009 11:34 Go to previous messageGo to next message
Lone0001 is currently offline  Lone0001
Messages: 2112
Registered: August 2006
Location: Ontario, Canada
Karma: 0
General (2 Stars)

Nice, you should link to the actual file though.

Re: SSGM Plug-in Console Commands [message #401716 is a reply to message #401707] Sat, 05 September 2009 11:40 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
I probably should. But to hell with it...

Not too much of a trade off really, a simple link to the site that I would like to become popular (which requires no registration and a very fast download, plus is very easy to navigate and has the added advantage of showing all the other plug-ins I've ever released on there in one neat list), and in return a free product that is actually worth downloading. Plus I cannot attach a movie that is that large on this forum which is also on there and related to it.

Bah, shhh, No one else commented on my shameless promotion. If I'm lucky no one else will notice Razz



Re: SSGM Plug-in Console Commands [message #401732 is a reply to message #401707] Sat, 05 September 2009 13:51 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
Good Job Reborn, I will have fun with this

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: SSGM Plug-in Console Commands [message #401783 is a reply to message #401707] Sat, 05 September 2009 23:50 Go to previous messageGo to next message
Sladewill is currently offline  Sladewill
Messages: 291
Registered: January 2009
Location: United Kingdom
Karma: 0
Recruit

nice work

FT-Owners - Sladewill,Snazy2007,Willdy
http://FT-Gaming.com for more info...
Re: SSGM Plug-in Console Commands [message #401817 is a reply to message #401707] Sun, 06 September 2009 08:37 Go to previous messageGo to next message
lion is currently offline  lion
Messages: 53
Registered: June 2005
Karma: 0
Recruit
Looks very usefull! Thumbs Up
Re: SSGM Plug-in Console Commands [message #401822 is a reply to message #401707] Sun, 06 September 2009 09:01 Go to previous messageGo to next message
DeathC200 is currently offline  DeathC200
Messages: 220
Registered: June 2008
Location: Hud Base
Karma: 0
Recruit
perfect release just the thing i have been waiting for Big Ups keep up the good work my friend . Wink
Re: SSGM Plug-in Console Commands [message #401825 is a reply to message #401707] Sun, 06 September 2009 09:18 Go to previous messageGo to next message
Catalyst is currently offline  Catalyst
Messages: 139
Registered: March 2009
Karma: 0
Recruit
Very Nice, i hope to intergrate this into the Ascended Warriors APB FDS Somehow Smile the little shits keep bugging me for !spectate Razz
Re: SSGM Plug-in Console Commands [message #401832 is a reply to message #401707] Sun, 06 September 2009 10:01 Go to previous messageGo to next message
Sladewill is currently offline  Sladewill
Messages: 291
Registered: January 2009
Location: United Kingdom
Karma: 0
Recruit

er reborn maybe u could make into some kind of proper console command next time Smile

FT-Owners - Sladewill,Snazy2007,Willdy
http://FT-Gaming.com for more info...
Re: SSGM Plug-in Console Commands [message #401840 is a reply to message #401832] Sun, 06 September 2009 10:52 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)

Sladewill wrote on Sun, 06 September 2009 12:01

er reborn maybe u could make into some kind of proper console command next time Smile

Well, it's kinda difficult when you have a bunch of morons with the console command code saying "I can't release it, it's too much of a security risk." Yeah, totally true, even though it's on the server side, dickheads.

If I had access to such code, I would gladly release the source to Reborn as well as anybody else, but since I don't have the assembly skills, it's at the mercy of the people that do. Who, as you have seen, would prefer to hoard it for themselves.


-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: SSGM Plug-in Console Commands [message #401842 is a reply to message #401840] Sun, 06 September 2009 11:02 Go to previous messageGo to next message
Hex is currently offline  Hex
Messages: 858
Registered: March 2004
Karma: 0
Colonel
Ethenal wrote on Sun, 06 September 2009 18:52

bunch of morons


Ethenal wrote on Sun, 06 September 2009 18:52

dickheads.


Why thank you


goztow wrote on Tue, 11 May 2010 08:00

If we had to ban all who ever cheated or ever created a cheat (obj3cts and such) then I don't think there would be many members left here (sad fact).


reborn wrote on Fri, 29 January 2010 23:37

std is for pro's. Razz
Re: SSGM Plug-in Console Commands [message #401843 is a reply to message #401842] Sun, 06 September 2009 11:04 Go to previous messageGo to next message
cAmpa is currently offline  cAmpa
Messages: 597
Registered: March 2006
Karma: 0
Colonel
Hex wrote on Sun, 06 September 2009 20:02

Ethenal wrote on Sun, 06 September 2009 18:52

bunch of morons


Ethenal wrote on Sun, 06 September 2009 18:52

dickheads.


Why thank you



Bückstabü!
Re: SSGM Plug-in Console Commands [message #401844 is a reply to message #401840] Sun, 06 September 2009 11:07 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)
Ethenal wrote on Sun, 06 September 2009 18:52

Who, as you have seen, would prefer to hoard it for themselves.


I have released a lot of code, including the said console command stuff. Including hooks for damage/chat/bunch of other stuff, and what did I get for that? lol you take a guess, because now I no longer release any code if I can. That is why I made Hooks.dll Wink

Oh, and...

cAmpa wrote on Sun, 06 September 2009 19:04

Hex wrote on Sun, 06 September 2009 20:02

Ethenal wrote on Sun, 06 September 2009 18:52

bunch of morons


Ethenal wrote on Sun, 06 September 2009 18:52

dickheads.


Why thank you




Re: SSGM Plug-in Console Commands [message #401860 is a reply to message #401844] Sun, 06 September 2009 12:42 Go to previous messageGo to next message
dr3w2 is currently offline  dr3w2
Messages: 485
Registered: September 2006
Location: Ottawa,Canada
Karma: 0
Commander
jnz wrote on Sun, 06 September 2009 13:07

Ethenal wrote on Sun, 06 September 2009 18:52

Who, as you have seen, would prefer to hoard it for themselves.


I have released a lot of code, including the said console command stuff. Including hooks for damage/chat/bunch of other stuff, and what did I get for that? lol you take a guess, because now I no longer release any code if I can. That is why I made Hooks.dll Wink

Oh, and...

cAmpa wrote on Sun, 06 September 2009 19:04

Hex wrote on Sun, 06 September 2009 20:02

Ethenal wrote on Sun, 06 September 2009 18:52

bunch of morons


Ethenal wrote on Sun, 06 September 2009 18:52

dickheads.


Why thank you






^^ this

Also jnz and campa = win Wink


n00bstories Server Administrator
Re: SSGM Plug-in Console Commands [message #401887 is a reply to message #401707] Sun, 06 September 2009 15:44 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
I don't see what would be so bad in relaseing the console command code, but I guess I don't know everything that it can do since im not a coder.

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: SSGM Plug-in Console Commands [message #401932 is a reply to message #401860] Mon, 07 September 2009 02:44 Go to previous messageGo to next message
raven
Messages: 595
Registered: January 2007
Location: Toronto, Ontario
Karma: 0
Colonel
andr3w282 wrote on Sun, 06 September 2009 14:42

jnz wrote on Sun, 06 September 2009 13:07

Ethenal wrote on Sun, 06 September 2009 18:52

Who, as you have seen, would prefer to hoard it for themselves.


I have released a lot of code, including the said console command stuff. Including hooks for damage/chat/bunch of other stuff, and what did I get for that? lol you take a guess, because now I no longer release any code if I can. That is why I made Hooks.dll Wink

Oh, and...

cAmpa wrote on Sun, 06 September 2009 19:04

Hex wrote on Sun, 06 September 2009 20:02

Ethenal wrote on Sun, 06 September 2009 18:52

bunch of morons


Ethenal wrote on Sun, 06 September 2009 18:52

dickheads.


Why thank you






^^ this




-Jelly Administrator
-Exodus Administrator
Re: SSGM Plug-in Console Commands [message #401947 is a reply to message #401707] Mon, 07 September 2009 07:18 Go to previous messageGo to next message
Sladewill is currently offline  Sladewill
Messages: 291
Registered: January 2009
Location: United Kingdom
Karma: 0
Recruit

why doesnt someone explain why it cannot be release with evidence Smile

FT-Owners - Sladewill,Snazy2007,Willdy
http://FT-Gaming.com for more info...
Re: SSGM Plug-in Console Commands [message #401953 is a reply to message #401707] Mon, 07 September 2009 08:05 Go to previous messageGo to next message
Hex is currently offline  Hex
Messages: 858
Registered: March 2004
Karma: 0
Colonel
Well the main thing is that the original person that 'supplied' others with said source requested that it not be released, I for one respect others requests.

goztow wrote on Tue, 11 May 2010 08:00

If we had to ban all who ever cheated or ever created a cheat (obj3cts and such) then I don't think there would be many members left here (sad fact).


reborn wrote on Fri, 29 January 2010 23:37

std is for pro's. Razz
Re: SSGM Plug-in Console Commands [message #401979 is a reply to message #401953] Mon, 07 September 2009 12:25 Go to previous message
dr3w2 is currently offline  dr3w2
Messages: 485
Registered: September 2006
Location: Ottawa,Canada
Karma: 0
Commander
Hex wrote on Mon, 07 September 2009 10:05

Well the main thing is that the original person that 'supplied' others with said source requested that it not be released, I for one respect others requests.

This pretty much sums it up right here. I have some source code that could be easily be given out and would cause no problems or damage at all but the original writer of it requested to keep it to myself and I don't go giving out other peoples work behind their back.

The stuff I wrote myself would cause more damage then good so I keep that private as well.


n00bstories Server Administrator

[Updated on: Mon, 07 September 2009 12:25]

Report message to a moderator

Previous Topic: Gold 2nd Havoc Mode
Next Topic: [Skin] Digital Deadeye
Goto Forum:
  


Current Time: Wed Nov 06 07:50:58 MST 2024

Total time taken to generate the page: 0.01124 seconds