How do you make plugins for ssgm? [message #271830] |
Sun, 08 July 2007 21:42 |
|
AoBfrost
Messages: 1248 Registered: March 2007
Karma: 0
|
General (1 Star) |
|
|
I've been modding ssgm and was wondering how do you make a plugin? I've been modding source files which is sorta easy, hard sometimes, but I want to make a plugin so I dont need to recode scripts.dll everytime i upgrade ssgm to the newer one, so my question is, what do you do in c++ to make a plugin? is there any special coding needed? or do i just take gmscripts.cpp and other files i edit and add that into the plugin? I'm not 100% sure so if anyone will give me a basic plugin making guide, thanks....if not...i'll just keep editing source files and not update ssgm for a while...
Some basic stuff i did was add extra chars into random character crate such as petrova for gdi, and kane for nod, and changed the nuke crate into a ion crate which kills you with a quick blast of ion... these are things i want to make into a plugin, some others i havent started yet, but thats all i have done for now in a few hours.
Scrin wrote on Fri, 05 October 2007 12:19 | ''whoa im the photoshop''
|
KANE LIVES!!!
[Updated on: Sun, 08 July 2007 21:45] Report message to a moderator
|
|
|
Re: How do you make plugins for ssgm? [message #271835 is a reply to message #271830] |
Sun, 08 July 2007 21:53 |
|
Whitedragon
Messages: 832 Registered: February 2003 Location: California
Karma: 1
|
Colonel |
|
|
Copy the scripts that you're editing into the plugin. They will override the ones in SSGM. There's also "Making Plugins.txt" in the documentation folder and the included example plugin source.
Black-Cell.net
Network Administrator (2003 - )
DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )
Dragonade, Renegade's first server side modification
Lead coder (2005 - )
[Updated on: Sun, 08 July 2007 21:56] Report message to a moderator
|
|
|
|
Re: How do you make plugins for ssgm? [message #271845 is a reply to message #271830] |
Sun, 08 July 2007 22:09 |
|
Whitedragon
Messages: 832 Registered: February 2003 Location: California
Karma: 1
|
Colonel |
|
|
You need to copy every part of the script, even if you didn't edit that part. Including the stuff in gmscripts.h.
Black-Cell.net
Network Administrator (2003 - )
DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )
Dragonade, Renegade's first server side modification
Lead coder (2005 - )
|
|
|
|
Re: How do you make plugins for ssgm? [message #272042 is a reply to message #271830] |
Mon, 09 July 2007 17:10 |
|
Whitedragon
Messages: 832 Registered: February 2003 Location: California
Karma: 1
|
Colonel |
|
|
Do you just want to change the weapon/armor model to the backpack or do you want to make the backpack have all of their picked up weapons in it?
The former is easy; just use Commands->Set_Model in MDB_SSGM_Player::Destroyed when it spawns the weapon or armor. I think "p_backpack" is the correct model.
The latter will be in the next version of SSGM.
Black-Cell.net
Network Administrator (2003 - )
DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )
Dragonade, Renegade's first server side modification
Lead coder (2005 - )
|
|
|
|
|
Re: How do you make plugins for ssgm? [message #272386 is a reply to message #271830] |
Tue, 10 July 2007 21:53 |
|
AoBfrost
Messages: 1248 Registered: March 2007
Karma: 0
|
General (1 Star) |
|
|
All i want is a example of 2 differnet characters weapon drops edited so that when you die ingame, you drop armor and gun but it spawns as a pack with both armor and gun INSIDE the backpack, the reason i need 2 characters done is so I know what to edit for the next, because whenever i edit the first character, sometimes i dont know what symbol i must add or take away to complete the script
for the example, if someone would show me
gdi minigunner with pack spawner, then the next character with pack spawner script also...
Oh i forgot to mention, since I am editing this for my clan;s main server I decided to use SSAOW instead, because after reading ssaow, it's a bit more spread out and open for me to understand, and well....I dont want to have to have our main modder recode everything into ssgm, so i decided to just edit what we have right now, and improve it.
Scrin wrote on Fri, 05 October 2007 12:19 | ''whoa im the photoshop''
|
KANE LIVES!!!
[Updated on: Tue, 10 July 2007 21:55] Report message to a moderator
|
|
|