Upgrades and Power-Ups [message #347018] |
Sat, 16 August 2008 17:15 |
|
samous
Messages: 616 Registered: August 2008
Karma: 0
|
Colonel |
|
|
I have been modifing the cnc_c130 file so that the c-130 would drop other cool stuf. L8ly I have had a problem with geting powerups that you can walk into and get (like weapons). I have been working on the Stealth Suit powerup, but i haven't been abkle to let the infantry grab it. I just walk over it and nothing happens. Can some one help me with this? Also, If you can get the power up to work, can someone tell me how to make the infantry unit that got it stealth?
-THNX
=Samous
Samous Ind. modding group website:
and Facebook Page: here
|
|
|
Re: Upgrades and Power-Ups [message #347025 is a reply to message #347018] |
Sat, 16 August 2008 18:17 |
bisen11
Messages: 797 Registered: December 2004
Karma: 0
|
Colonel |
|
|
There's several powerup presets that don't actually work, such as the stealth suit. You might be able to get them to work using some combination of scripts.
|
|
|
Re: Upgrades and Power-Ups [message #347027 is a reply to message #347025] |
Sat, 16 August 2008 19:03 |
_SSnipe_
Messages: 4121 Registered: May 2007 Location: Riverside Southern Califo...
Karma: 0
|
General (4 Stars) |
|
|
bisen11 wrote on Sat, 16 August 2008 18:17 | There's several powerup presets that don't actually work, such as the stealth suit. You might be able to get them to work using some combination of scripts.
|
they work....all powerups do....its just in level u have to attach a script to its preset that when u pick it up it gives you something,,,,and you have to type what it gives you.. right now you cant pick them up causev they dont give you nothing...
for stealth suit theres a script that you put on that power up so when you pick it up the unit becomes stealth for xxx amount of time
i would tell you but i dont have level edit working
|
|
|
|
|
Re: Upgrades and Power-Ups [message #347056 is a reply to message #347018] |
Sun, 17 August 2008 01:33 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma: 0
|
General (3 Stars) |
|
|
samous wrote on Sat, 16 August 2008 20:15 | I have been modifing the cnc_c130 file so that the c-130 would drop other cool stuf. L8ly I have had a problem with geting powerups that you can walk into and get (like weapons). I have been working on the Stealth Suit powerup, but i haven't been abkle to let the infantry grab it. I just walk over it and nothing happens. Can some one help me with this? Also, If you can get the power up to work, can someone tell me how to make the infantry unit that got it stealth?
-THNX
=Samous
|
You're going to need to make a objects.ddb/aow/gm mod for your server.
Tick the box in level edit that says "alwaysallowgrant" on the preset that you're making the plane drop. That's what you need to do to make the infantry able to "grab" the power-up.
|
|
|
Re: Upgrades and Power-Ups [message #347064 is a reply to message #347056] |
Sun, 17 August 2008 03:06 |
DL60
Messages: 283 Registered: May 2006
Karma: 0
|
Recruit |
|
|
Quote: | The stealth armor works, attach TDA_Stealth_Armor to it.
|
Interesting. I'm always a bit unsure about where to add such scripts.
To the objects-preset?
To the spawner-preset for taht object?
To every placed spawner separatly in my terrain?
Because I tried that long time ago @ DM_Yodeller.
|
|
|
Re: Upgrades and Power-Ups [message #347067 is a reply to message #347018] |
Sun, 17 August 2008 03:43 |
|
zunnie
Messages: 2959 Registered: September 2003 Location: Netherlands
Karma: 0
|
General (2 Stars) |
|
|
I made a script for that powerup a long time ago but i dont think it
was ported into the scripts 3.4.4 dll, hopefully Jonwil will add it to 4.0 scripts.dll
The source code:
void z_StealthSuit::Custom(GameObject *obj,int message,int param,GameObject *sender)
{
if (message == 1000000025)
{
Change_Character(sender,"CnC_Nod_FlameThrower_2SF");
}
}
ScriptRegistrant<z_StealthSuit> z_StealthSuit_Registrant("z_StealthSuit","");
class z_StealthSuit : public ScriptImpClass {
void Custom(GameObject *obj,int message,int param,GameObject *sender);
};
|
|
|
Re: Upgrades and Power-Ups [message #347069 is a reply to message #347067] |
Sun, 17 August 2008 03:59 |
|
saberhawk
Messages: 1068 Registered: January 2006 Location: ::1
Karma: 0
|
General (1 Star) |
|
|
zunnie wrote on Sun, 17 August 2008 05:43 | I made a script for that powerup a long time ago but i dont think it
was ported into the scripts 3.4.4 dll, hopefully Jonwil will add it to 4.0 scripts.dll
The source code:
void z_StealthSuit::Custom(GameObject *obj,int message,int param,GameObject *sender)
{
if (message == 1000000025)
{
Change_Character(sender,"CnC_Nod_FlameThrower_2SF");
}
}
ScriptRegistrant<z_StealthSuit> z_StealthSuit_Registrant("z_StealthSuit","");
class z_StealthSuit : public ScriptImpClass {
void Custom(GameObject *obj,int message,int param,GameObject *sender);
};
|
jonwil isn't the only person that has authority over importing scripts, you know...
Imported.
|
|
|
|
|
Re: Upgrades and Power-Ups [message #347152 is a reply to message #347018] |
Sun, 17 August 2008 14:10 |
|
samous
Messages: 616 Registered: August 2008
Karma: 0
|
Colonel |
|
|
"You're going to need to make a objects.ddb/aow/gm mod for your server.
Tick the box in level edit that says "alwaysallowgrant" on the preset that you're making the plane drop. That's what you need to do to make the infantry able to "grab" the power-up. "
I'm not making a LVL, just editing the cnc_c130drop file.
I wasn't expecting getting 10+ replies to this subect either, so thanks for the help, alot!
"The stealth armor works, attach TDA_Stealth_Armor to it"
I tried this, and it was just like before, I walk right on past it. (with out "grabing" it) Does anyone know how to let the characters GRAB the power up without making a new lvl?
-Little more help
=Samous
Samous Ind. modding group website:
and Facebook Page: here
[Updated on: Sun, 17 August 2008 14:11] Report message to a moderator
|
|
|
Re: Upgrades and Power-Ups [message #347158 is a reply to message #347152] |
Sun, 17 August 2008 14:25 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma: 0
|
General (3 Stars) |
|
|
samous wrote on Sun, 17 August 2008 17:10 | "You're going to need to make a objects.ddb/aow/gm mod for your server.
Tick the box in level edit that says "alwaysallowgrant" on the preset that you're making the plane drop. That's what you need to do to make the infantry able to "grab" the power-up. "
I'm not making a LVL, just editing the cnc_c130drop file.
|
I know, but the power-up you're talking about probably doesn't grant anything at all, and with alwaysallowgrant turned off, that would be the reason for you not being able to "grab it". Even if you did attach a script to it, you would need to either make it grant something so they could "grab it" or use that setting, which would require the object mod for the server.
|
|
|
|
Re: Upgrades and Power-Ups [message #347167 is a reply to message #347164] |
Sun, 17 August 2008 14:42 |
_SSnipe_
Messages: 4121 Registered: May 2007 Location: Riverside Southern Califo...
Karma: 0
|
General (4 Stars) |
|
|
samous wrote on Sun, 17 August 2008 14:36 | Well, if anyone does figuer out a way to add a line or so of script to get you to aquier the power-up and turn stealth, that would be cool.
=Samous
PS: is there a oppisate of the M00_Disable_Transition script?
|
1)this script attached to the preset will turn u stealth when ever you pick it up
TDA_Stealth_Armor
2)each powerup preset you need to check "alwaysallowgrant"
3)each powerup is BLANK you need to attach a script like "grand powerup on pickup or something related to that since i forgot the name onto the preset then type in what you get when you pickit up
PS:this is all done via level edit serverside if you do not know how to put scripts on the powerups via level edit please say so
[Updated on: Sun, 17 August 2008 14:43] Report message to a moderator
|
|
|
|
Re: Upgrades and Power-Ups [message #347179 is a reply to message #347176] |
Sun, 17 August 2008 15:06 |
_SSnipe_
Messages: 4121 Registered: May 2007 Location: Riverside Southern Califo...
Karma: 0
|
General (4 Stars) |
|
|
samous wrote on Sun, 17 August 2008 14:50 | maby you don't understand, all i'm doing is editing the c-130 file, i'm going to make a better c-130 drop editor with it! If some one can just tell me the exact lines of script i can MANUALLY add to the cnc_c130drop.txt file, that would be cool. I CAN NOT USE LVL EDITOR with my c-130 drop editor.
=Samous
PS: Is there a M00_Enable_Transition Script?
|
well idont thinku can do it via c130
|
|
|
|
Re: Upgrades and Power-Ups [message #347185 is a reply to message #347176] |
Sun, 17 August 2008 15:48 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma: 0
|
General (3 Stars) |
|
|
samous wrote on Sun, 17 August 2008 17:50 | maby you don't understand, all i'm doing is editing the c-130 file, i'm going to make a better c-130 drop editor with it! If some one can just tell me the exact lines of script i can MANUALLY add to the cnc_c130drop.txt file, that would be cool. I CAN NOT USE LVL EDITOR with my c-130 drop editor.
=Samous
PS: Is there a M00_Enable_Transition Script?
|
The preset itself needs to be changed. To do this you need to use level edit.
The only other way that I can think of is to attach a script to the power-up you created that uses the function "Set_Powerup_Always_Allow_Grant". You could write your own I guess, but it would probably be easier for you to make the objects mod using level edit.
|
|
|