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 Go to next message](/theme/Renegade_Forums/images/down.png) |
![](http://renegadeforums.com/images/custom_avatars/3415.gif) |
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 #401840 is a reply to message #401832] |
Sun, 06 September 2009 10:52 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
![](http://renegadeforums.com/images/custom_avatars/22131.jpg) |
Ethenal
Messages: 2532 Registered: January 2007 Location: US of A
Karma: 0
|
General (2 Stars) |
![Ethenal@GMail.com](/theme/Renegade_Forums/images/google.png)
|
|
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](images/smiley_icons/icon_smile.gif)
|
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
|
|
|
|
|
Re: SSGM Plug-in Console Commands [message #401843 is a reply to message #401842] |
Sun, 06 September 2009 11:04 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
![](http://renegadeforums.com/images/custom_avatars/20886.jpg) |
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 message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
![](http://renegadeforums.com/images/avatars/gosticon 0000.jpeg) |
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](images/smiley_icons/icon_wink.gif)
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 message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
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](images/smiley_icons/icon_wink.gif)
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
n00bstories Server Administrator
|
|
|
|
Re: SSGM Plug-in Console Commands [message #401932 is a reply to message #401860] |
Mon, 07 September 2009 02:44 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
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](images/smiley_icons/icon_wink.gif)
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 #401979 is a reply to message #401953] |
Mon, 07 September 2009 12:25 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) |
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
|
|
|
Goto Forum:
Current Time: Wed Aug 28 09:12:55 MST 2024
Total time taken to generate the page: 0.01004 seconds
|