Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Scripts Part 3
Re: Scripts Part 3 [message #266947 is a reply to message #266592] Mon, 18 June 2007 00:09 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 don't have access to a compiler today as i am working in a different office. When I get home I will write you a working random char crate that does what you want, and fix your code so only you can do the !dino command and actually make it work.
I want your ingame name, if you have a static ip then that would help too.

If you want other characters and stuff too, then you will have to copy what I give you tonight and work it out yourself based on the !dino one.
You may wish to send me your current working solution.

Please do not think that I will do this all the time, I will not. I want to start back on something I have left alone for a couple of weeks now and it is importnant to me that I get it finished. This will take all of my time.

Now do me a favour Joe, stop calling "presets" "presents", I don't know why you keep doing this. If you want people to help you then stop typing lazily. For example, don't type "u", type "you". Also, make sure your sentences have a structure and are punctuated. Sometimes I read your posts and can understand them, but it takes me a while to realise what you are actually asking. I have to make sense of what you mean. I think that sometimes you type whatever is in your head at the time, and your fingers can't keep up with your brain. Just try to articulate yourself better. This will help me to help you, and people will stop giving you such a hard time around here. They might also be inclined to actually help you too. Which is a good thing, as everyone learns this way. =]



[Updated on: Mon, 18 June 2007 00:11]

Report message to a moderator

Re: Scripts Part 3 [message #266952 is a reply to message #266592] Mon, 18 June 2007 01:19 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)
Yes sir thank you but i really hope you also teach me what I did Wrong with my crate changes make sure it has what you see.

also the dino
i just want it to be !dino and turns only me into that char just put <nick> or somthing so i can put my nickname inside myself sorry aswell i do not have a static ip Sad.

PS just get some new 1.50 ssaow source files and put those chars into that random char and i dont know about how to get the vech if you can that two as in the codes i posted as you can see and then make sure to show me what i did wrong ok? Wink i really dont have any source code sim really working on yet that was kinda it and it was a failure .....

Tips:
dino.w3d
DO NOT PUT the flying infantry i changed my mine
just make the dino like a basic char with 500 sniper gunn and 200 hp/armor and thats it

for the vech crates
Nod_Flame_Tank_Player
Nod_Stealth_Tank_Player
"Nod_Recon_Bike_Player

for char crate just like in the code

reborn ty so very much

[Updated on: Mon, 18 June 2007 01:22]

Report message to a moderator

Re: Scripts Part 3 [message #267014 is a reply to message #266592] Mon, 18 June 2007 10:08 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)
OK, heres the release version with source code. It is important you either use the ssaow.ini provided, or change yours so that "extras" are not on the disabled list (that had me thinking for a couple of minutes...).
The source code is based on SSAOW with the bot fix, I know you asked for just 1.5 but I am assuming at some point you may wish to add bot support, and I won't do this again for you.

Here is the download link:
http://www.mp-gaming.com/reborn/coderelease/JoesSSAOW.zip

The commands are bound to the name "ren00b", just change you name in the source and recompile it. It is importnat you protect this name and make the name !auth itself or something as I normally bind it to the ip too.

The commands are "!dino" and "!boss". !dino will change the model to the dino.w3d model, it doesn't work too well tbh, there is no preset for the model so it makes it spawn in that startup "jesus" position.. Just weird IMO.
The !boss command will turn the character into a stealth petrova mutant with 1200 health and 1200 armor, the stealth is server side as it is the only preset character other then the sbh to have stealth by defualt.

The character crate has also been changed to include your mutant people. You may wish to chnage there names as I called some of them oxi, reborn and zunnie. I would prefer you to keep this tbh. Kinda like a tribute to http://www.mp-gaming.com

Screenies:

http://www.mp-gaming.com/reborn/screenies/!boss.gif

http://www.mp-gaming.com/reborn/screenies/!dino.gif

http://www.mp-gaming.com/reborn/screenies/oximutantcrate.gif

http://www.mp-gaming.com/reborn/screenies/rebornmutantcrate.gif

http://www.mp-gaming.com/reborn/screenies/zunniemutantcrate.gif

I realise you didn;t want the !boss command, but you can remove it easily, and it should give you an excellent idea of how to make some commands yourself for other purposes.



Re: Scripts Part 3 [message #267106 is a reply to message #266592] Mon, 18 June 2007 16:42 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)
ty very much may i ask what did i do wrong with the random char create thing?

also is there a way i can change so they wont have to disable extras because this mod is made for aow serv not coop this time just tell em and ill change it Wink

[Updated on: Mon, 18 June 2007 16:59]

Report message to a moderator

Re: Scripts Part 3 [message #267116 is a reply to message #266592] Mon, 18 June 2007 17:25 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)
also reborn dino works good for gdi but on nod it dont show up >.<
Re: Scripts Part 3 [message #267163 is a reply to message #267106] Mon, 18 June 2007 21:42 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)
joe937465 wrote on Mon, 18 June 2007 19:42

ty very much may i ask what did i do wrong with the random char create thing?

also is there a way i can change so they wont have to disable extras because this mod is made for aow serv not coop this time just tell em and ill change it Wink


The character crate has code that uses this:

Reselect3:
				int	Rnd	= Commands->Get_Random_Int(1,101);
				int	Index = 0;
				if (Rnd	<= 10) Index = 0;
				else if	(Rnd <=	20)	Index =	1;
				else if	(Rnd <=	30)	Index =	2;
				else if	(Rnd <=	40)	Index =	3;
				else if	(Rnd <=	50)	Index =	4;
				else if	(Rnd <=	60)	Index =	5;
				else if	(Rnd <=	65)	Index =	6;
				else if	(Rnd <=	70)	Index =	7;
				else if	(Rnd <=	75)	Index =	8;
				else if	(Rnd <=	80)	Index =	9;
				else if	(Rnd <=	85)	Index =	10;
				else if	(Rnd <=	90)	Index =	11;
                else if	(Rnd <=	99) Index = 12;
				else Index = 13;



I added 10, 11, 12 & 13 which correspond to the four added random characters. You array was fine, just the code used to choose from the array needed to be changed.

The disable extra's is sever side. There is no need for a client change. In a defualt ssaow.ini file on the server there is a setting for disabling characters. By defualt the "extras" are disabled. I included a new ssaow.ini in that .zip folder to edit that as the mutant presets come under that extras menu. The clients don't have to chnage anything, it is just the ssaow.ini file on the server.

I have no idea why the !dino command works for GDI but not Nod, I didn't test it. I have to leave for work soon so I will not have time to look at it until I get home.



Re: Scripts Part 3 [message #267168 is a reply to message #266592] Mon, 18 June 2007 22:04 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)
well dont worry about the dino right now i got bigger things

here are some server side things that are impotent and on the top of my list for the server im editing fro are asking

1)how can i make it where when an stealth suit is on the floor that when a tank runs over it the tank goes stealth iv seen it before how can i do that?

2) how can i make a char u can turn into without base defenses killing u?

3)also reborn that code u gave me to buy !boss it works but when i added another under it with a another nick the same way it dont work for that nick but the other nick?

		else if (stricmp(Msg2,"!boss") == 0)
			{
			if (stricmp(Get_Player_Name_By_ID(ID),"<nick one>") == 0) {
		Change_Character(obj,"Mutant_3Boss_Petrova");
			}
			}
		else if (stricmp(Msg2,"!boss") == 0)
			{
			if (stricmp(Get_Player_Name_By_ID(ID),"<nick 2>") == 0) {
		Change_Character(obj,"Mutant_3Boss_Petrova");
			}
			}
	}
}  

only nick one works nick 2 dont

4)how can i change the spy into another char?

also one that thing thaat code above u posted to edit to let em have the new chars in my crates where is it located?



Re: Scripts Part 3 [message #267185 is a reply to message #266592] Tue, 19 June 2007 00:20 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)
joe937465 wrote on Tue, 19 June 2007 01:04


1)how can i make it where when an stealth suit is on the floor that when a tank runs over it the tank goes stealth iv seen it before how can i do that?


Make a spawner for the suit and edit the preset to "always allow grant", then attach a script to it that turns the vehichle stealth.
This will never be 100% server side and only client with the core-patch or higher will be able to use it. People without the corepatch will be able to see the vehichle as if it is normal and unstealthed. This will make for horrible gameplay and allot of people crying "cheater, ban pl0x admin, he see's stealth", "stealth h4x, ban him".


joe937465 wrote on Tue, 19 June 2007 01:04


2) how can i make a char u can turn into without base defenses killing u?



Do you mean make a character with a command like !boss or just a character you buy from the purchase terminal or random char crate?
Have a look at the "spy_crate" and you will see the scripts attached to the preset that make base defence ignore it. Try making that a project for yourself, it isn;t too challenging and will help you develop.

joe937465 wrote on Tue, 19 June 2007 01:04


3)also reborn that code u gave me to buy !boss it works but when i added another under it with a another nick the same way it dont work for that nick but the other nick?

		else if (stricmp(Msg2,"!boss") == 0)
			{
			if (stricmp(Get_Player_Name_By_ID(ID),"<nick one>") == 0) {
		Change_Character(obj,"Mutant_3Boss_Petrova");
			}
			}
		else if (stricmp(Msg2,"!boss") == 0)
			{
			if (stricmp(Get_Player_Name_By_ID(ID),"<nick 2>") == 0) {
		Change_Character(obj,"Mutant_3Boss_Petrova");
			}
			}
	}
}  

only nick one works nick 2 dont



You're nearly there. But you're doing it as if it's a whole new command. It needs to be like this (or something similar, will check when I get home if it doesn't work as I still don't have access to the sourec code or a compiler in the office where I am, and there might be a brace missing or something).

else if (stricmp(Msg2,"!boss") == 0)
{
if (stricmp(Get_Player_Name_By_ID(ID),"<nick one>") == 0) {
Change_Character(obj,"Mutant_3Boss_Petrova");
}
else if (stricmp(Get_Player_Name_By_ID(ID),"<nick 2>") == 0) {
Change_Character(obj,"Mutant_3Boss_Petrova");
}
}
}
}  




joe937465 wrote on Tue, 19 June 2007 01:04


4)how can i change the spy into another char?



Erm, search the crate.cpp file for "crate_spy" or something similar, then where it does "Change_Character(obj/sender/object,"sbhpresetname"); change the preset name to another character (note it will not be stealth).
This is pretty much from memory so it may be slightly different.

joe937465 wrote on Tue, 19 June 2007 01:04


also one that thing thaat code above u posted to edit to let em have the new chars in my crates where is it located?



Search the crates.cpp file for "int Rnd = Commands->Get_Random_Int(1,101);" and it should take you to where that is.


Any problems post back, but anything too technical and it will have to wait untill I get home.



Re: Scripts Part 3 [message #267210 is a reply to message #266592] Tue, 19 June 2007 01:41 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)
well i just need the code tested about the !boss im have about 7 nicks and i dont have a second person to help me test >.<

"Make a spawner for the suit and edit the preset to "always allow grant", then attach a script to it that turns the vehichle stealth.
This will never be 100% server side and only client with the core-patch or higher will be able to use it. People without the corepatch will be able to see the vehichle as if it is normal and unstealthed. This will make for horrible gameplay and allot of people crying "cheater, ban pl0x admin, he see's stealth", "stealth h4x, ban him"

im 100& aware of this i just dont know how to make that script >.<

[Updated on: Tue, 19 June 2007 01:42]

Report message to a moderator

Re: Scripts Part 3 [message #267224 is a reply to message #266592] Tue, 19 June 2007 02:38 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)
and did i do this rigth heres the one i need with all the spaces but not working

         if (stricmp(Msg2,"!boss") == 0)
        {
            if (stricmp(Get_Player_Name_By_ID(ID),"<nick>") == 0) {
                Change_Character(obj,"Mutant_3Boss_Petrova");
			}
             if (stricmp(Get_Player_Name_By_ID(ID),"<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
             if (stricmp(Get_Player_Name_By_ID(ID),"<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
             if (stricmp(Get_Player_Name_By_ID(ID),"<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
             if (stricmp(Get_Player_Name_By_ID(ID),"<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
             if (stricmp(Get_Player_Name_By_ID(ID),"<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
             if (stricmp(Get_Player_Name_By_ID(ID),"<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
             if (stricmp(Get_Player_Name_By_ID(ID),"<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
             if (stricmp(Get_Player_Name_By_ID(ID),"<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
             if (stricmp(Get_Player_Name_By_ID(ID),"<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
             if (stricmp(Get_Player_Name_By_ID(ID),"<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
             if (stricmp(Get_Player_Name_By_ID(ID),"<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
                }
                }


i copied what u did but i think i messed up after trying to fix it
Re: Scripts Part 3 [message #267228 is a reply to message #266592] Tue, 19 June 2007 02:53 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)
Nope, you forgot lot's of "else". It's hard to find the time to do this at work. I have to stay late tonight at work and i'm visiting my parents tonight too. If I have some time then I will try to post what it should look like and add the vehichle code too for stealth effect and also the !buymed etc etc code. But it might have to wait until tomorow night.

There are however at least ten other people who visit these forums that could amend your code, I often wonder why the do not Huh



Re: Scripts Part 3 [message #267232 is a reply to message #266592] Tue, 19 June 2007 03:11 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)
ty but all i need is the !boss and vechs become stealth techs when they pick up sbh suit i tryed making ym own scripts for a few hours and got no where Sad ok reborn let me try to get this one alone how is this edit?

		}
        else if (stricmp(Msg2,"!boss") == 0)
                {
           else if (stricmp(Get_Player_Name_By_ID(ID),"<nick>") == 0) {
                Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
   		        }  
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),"l"<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else  if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
                }
                }

	}
}





1)"Do you mean make a character with a command like !boss or just a character you buy from the purchase terminal or random char crate?
Have a look at the "spy_crate" and you will see the scripts attached to the preset that make base defence ignore it. Try making that a project for yourself, it isn;t too challenging and will help you develop."

i tryed to make a script liek this but i dont know where to start can yuo drop me some hints?

2)"erm, search the crate.cpp file for "crate_spy" or something similar, then where it does "Change_Character(obj/sender/object,"sbhpresetname"); change the preset name to another character (note it will not be stealth).
This is pretty much from memory so it may be slightly different."

i looked and cant find it /;

[Updated on: Tue, 19 June 2007 03:17]

Report message to a moderator

Re: Scripts Part 3 [message #267235 is a reply to message #267232] Tue, 19 June 2007 04:00 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)
joe937465 wrote on Tue, 19 June 2007 06:11

how is this edit?

		}
        else if (stricmp(Msg2,"!boss") == 0)
                {
           else if (stricmp(Get_Player_Name_By_ID(ID),"<nick>") == 0) {
                Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
   		        }  
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),"l"<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else  if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
                }
                }

	}
}




The first " else if (stricmp(Get_Player_Name_By_ID(ID),"<nick>") == 0) {
" you need to remove the else, other then that it looks fine to me.


joe937465 wrote on Tue, 19 June 2007 06:11


i tryed to make a script liek this but i dont know where to start can yuo drop me some hints?



You still havn't answered if it is something you want to do as part of a command like !spyme, or you want to make a player from the purchase terminal for all people to buy like this :/

joe937465 wrote on Tue, 19 June 2007 06:11



i looked and cant find it /;




Open crates.cpp, scroll to there you see the part that is recognisable as the beginning of the spy crate. After the code that should look something like "Change_Character(obj,"sbhpresetname"); there will be scripts attached to the player to make them ignored by base defence. This is what you are looking for.



[Updated on: Tue, 19 June 2007 04:01]

Report message to a moderator

Re: Scripts Part 3 [message #267296 is a reply to message #266592] Tue, 19 June 2007 10:37 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 have had a little time as I got out of work earlier then I thought.
I have added a !spy command so that it will turn your player into a sbh and base defence will ignore you, plus it grants you a few weapons too. I would be careful, as this is obviously easily exploitable as a server owner.
I have used my name as the primary player name, however I have now changed the code so that two other nick names can be used too. I used nick2 and nick3 as placeholder names for you to change.
The code is easily readable so if you want to add more you should be able to follow how I did it for nick2 and nick3 to add more yourself.
The !dino command worked for me on both teams, I have no idea why it didn't work for you :/ Maybe you didn't use team chat?

To make a player ignored by base defence then use this:
"Commands->Set_Is_Visible(obj,false);" where obj is the player, this could change to "sender", "poker" etc etc depending on the situation.

Download link to server files and source code:
http://www.mp-gaming.com/reborn/coderelease/joesSSAOW2.zip

Screeny:
http://www.mp-gaming.com/reborn/screenies/spy.gif



[Updated on: Tue, 19 June 2007 10:39]

Report message to a moderator

Re: Scripts Part 3 [message #267317 is a reply to message #266592] Tue, 19 June 2007 11:38 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)
ty and trust me i really am trying to learn thsi stuff Wink


now where is thsi code at so i can edit it and look at how it looks? EDIT;NVM


wow reborn that command looks kinda easy i may know how to make one like that

i may have to make more changes but im still looking into that lol
i just make the mod lol i don't decade what to change -_-

and ty again so far i have been learning from you Wink


also reborn do you see my siggy? Wink

[Updated on: Tue, 19 June 2007 11:47]

Report message to a moderator

Re: Scripts Part 3 [message #267331 is a reply to message #266592] Tue, 19 June 2007 13:01 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)
1) ok this ones importent for the guys who are asking me to have
umm we did the boss and !spy now how can we do a command to alowed u to spectate anywhere on the map?

2) the code for the spy how can i add a script underit?

[Updated on: Tue, 19 June 2007 13:14]

Report message to a moderator

Re: Scripts Part 3 [message #267382 is a reply to message #267331] Tue, 19 June 2007 15:13 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
Just make a character with no model, jfw_flying_infantry attached to it, make it neutral, make it stealth. Razz
Re: Scripts Part 3 [message #267389 is a reply to message #267382] Tue, 19 June 2007 15: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)
BlueThen wrote on Tue, 19 June 2007 17:13

Just make a character with no model, jfw_flying_infantry attached to it, make it neutral, make it stealth. Razz



but u still can see the name.........
Re: Scripts Part 3 [message #267408 is a reply to message #267331] Tue, 19 June 2007 16:11 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)
joe937465 wrote on Tue, 19 June 2007 16:01

1) ok this ones importent for the guys who are asking me to have
umm we did the boss and !spy now how can we do a command to alowed u to spectate anywhere on the map?



I created a spectate mode and added it to the source.
(All of them are bound to the name "ren00b", but it also works for "nick2" and "nick£", you will need to add other peoples names instead of them there, and if you want more then copy how I did it for these two example placeholders.

I really can't stress enough now how much you need to secure those nick names and make them !auth themselves, if someone joined your server via ip and stole the nick whilst no one noticed they could ruin the game for people.

Type "!spec1", then type "!spec2" in team chat. This will place you as neutral, remove your model, clear your weapons, and allow you to fly as if you are a helicopter, and base defence will ignore you.
Type "!unspecgdi" to return to the GDI side after spectating, and type "!unspecnod" to return to nod after spectating.

Some team nuetral start up positions are under the map, so i shoved you up in the air by 80 on the z axis. This maybe un acceptable in some maps, i didn't try them all. You may wish to beta test this out and adjust accordingly.

Download link to new source code and server files:
http://www.mp-gaming.com/reborn/coderelease/JoesSSAOW3.zip

joe937465 wrote on Tue, 19 June 2007 16:01


2) the code for the spy how can i add a script underit?


This is most of the spy crate code:


else if	((RandomIntCrate <=	(percent+=Crate_Spy)) && (Crate_Spy	> 0))
			{
				if (Settings->GameMode != 1) goto CrateStart;
				if (Settings->Gamelog) 
				{
					char Message[512];
					Vector3	pos;
					pos	= Commands->Get_Position(sender);
					sprintf	(Message, "CRATE;SPY;;%d;%s;%f;%f;%f;%f;%f;%f;%d", Commands->Get_ID(sender), Commands->Get_Preset_Name(sender),	pos.Y,pos.X,pos.Z, Commands->Get_Facing(sender), Commands->Get_Max_Health(sender),Commands->Get_Max_Shield_Strength(sender),Get_Object_Type(sender));
					WriteFile(Message);
				}
				Change_Character(sender,"CnC_Nod_FlameThrower_2SF");
				Commands->Set_Is_Visible(sender,false);
///////////Add your scripts to the (sender) here///////////////////
				sprintf(message,"A %s player picked up a Spy Crate.",Commands->Get_Player_Type(sender)==0?"Nod":"GDI");
				FDSMessage(message,"_CRATE");
				sprintf(message,"ppage %d [Crate] You got the Spy Crate, base defenses will ignore you until you die, buy a new character or destroy a building.",Get_Player_ID(sender));
				sprintf(message2,"msg Crate: Oh no! A %s player just got a spy crate, better watch your base %s!",Commands->Get_Player_Type(sender)==0?"Nod":"GDI",Commands->Get_Player_Type(sender)==0?"GDI":"Nod");
				Console_Input(message2);
			}



And yes I did notice the sig =]

What is the site for the people you are making this mod? Please post a link.

Also, I noticed that I am doing all your work for you, and you have not improved your lazy typing. You still insist on typing like you are sms text messaging a friend. It is important you improve this, as people will take you for an idiot otherwise and not help you. Please just take the extra couple of minutes to go over your posts before submitting them. I have spent litterally hours and hours helping you now. This is the least you can do.



[Updated on: Tue, 19 June 2007 16:14]

Report message to a moderator

Re: Scripts Part 3 [message #267418 is a reply to message #266592] Tue, 19 June 2007 16:50 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)
ok i ran into some errors >.<

------ Build started: Project: scripts, Configuration: Release Win32 ------
Compiling...
aow.cpp
.\aow.cpp(1361) : error C2065: 'Move' : undeclared identifier
.\aow.cpp(1507) : error C2001: newline in constant
.\aow.cpp(1508) : error C2146: syntax error : missing ')' before identifier 'Change_Team'
.\aow.cpp(1509) : error C2143: syntax error : missing ')' before '}'
.\aow.cpp(1509) : error C2143: syntax error : missing ';' before ')'
.\aow.cpp(1542) : error C2059: syntax error : '}'
.\aow.cpp(1542) : error C2143: syntax error : missing ';' before '}'
.\aow.cpp(1542) : error C2059: syntax error : '}'
.\aow.cpp(1545) : error C2143: syntax error : missing ';' before '{'
.\aow.cpp(1545) : error C2447: '{' : missing function header (old-style formal list?)
.\aow.cpp(3857) : error C3861: 'GetIconBone': identifier not found
.\aow.cpp(3859) : error C3861: 'GetIconBone': identifier not found
.\aow.cpp(3861) : error C3861: 'GetIconBone': identifier not found
.\aow.cpp(3868) : error C3861: 'GetIconBone': identifier not found
.\aow.cpp(3870) : error C3861: 'GetIconBone': identifier not found
.\aow.cpp(3872) : error C3861: 'GetIconBone': identifier not found
.\aow.cpp(3894) : error C3861: 'GetIconBone': identifier not found
.\aow.cpp(3897) : error C3861: 'GetIconBone': identifier not found
.\aow.cpp(3899) : error C3861: 'GetIconBone': identifier not found
.\aow.cpp(3902) : error C3861: 'GetIconBone': identifier not found
.\aow.cpp(3905) : error C3861: 'GetIconBone': identifier not found
.\aow.cpp(3907) : error C3861: 'GetIconBone': identifier not found
.\aow.cpp(3914) : error C3861: 'GetIconBone': identifier not found
.\aow.cpp(3917) : error C3861: 'GetIconBone': identifier not found
.\aow.cpp(3919) : error C3861: 'GetIconBone': identifier not found
.\aow.cpp(3922) : error C3861: 'GetIconBone': identifier not found
.\aow.cpp(3925) : error C3861: 'GetIconBone': identifier not found
.\aow.cpp(3927) : error C3861: 'GetIconBone': identifier not found
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 8.00.50727
Copyright (C) Microsoft Corporation. All rights reserved.
BSCMAKE: error BK1506 : cannot open file '.\Release\dllmain.sbr': No such file or directory
Build log was saved at "file://c:\Documents and Settings\Owner\Desktop\<blocked>\<blocked>\Source Files\ssaow_source\SSAOW 1.5 Source\Release\BuildLog.htm"
scripts - 29 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Re: Scripts Part 3 [message #267420 is a reply to message #267418] Tue, 19 June 2007 16:58 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)
joe937465 wrote on Tue, 19 June 2007 19:50

ok i ran into some errors >.<




Looks like a missing "}" somewhere. The version I uploaded compiles fine " Build: 2 succeeded, 0 failed, 0 skipped".
You must be trying to edit the code yourself.
Post the code and I will tell you what needs to change.

That is however if you tell me the site of the place that you are doing this mod for...







[Updated on: Tue, 19 June 2007 17:24]

Report message to a moderator

Re: Scripts Part 3 [message #267424 is a reply to message #266592] Tue, 19 June 2007 17:11 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)
check your pm and woot reborn i fixed it Wink
Re: Scripts Part 3 [message #267461 is a reply to message #266592] Wed, 20 June 2007 00: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)
1)ok heres soem things when u do !spec2 a second time u fall the floor and walk BUT u leave or see foot steps can we fix that?

2) also in spectate u can pick up crate what script can disable that?

3) and how cna i make it so harv cant kill u?

4) how can i make a char stealth (halo_kane_small or somthing?

5)and last when in spec mode how can u make it move faster?

ty
Re: Scripts Part 3 [message #267463 is a reply to message #266592] Wed, 20 June 2007 00:20 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)
Sorry, I refuse to help you anymore.
I have just realised what a complete idiot I have been by not realising who you actually are and who i've been helping all this time.
I feel like such an idiot.



Re: Scripts Part 3 [message #267467 is a reply to message #266592] Wed, 20 June 2007 00:35 Go to previous messageGo to previous message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
dont feel like that man your a good man ok?

[Updated on: Wed, 20 June 2007 00:37]

Report message to a moderator

Previous Topic: GB
Next Topic: SSGM, previously SSAOW, Version 2.0
Goto Forum:
  


Current Time: Mon Dec 30 04:09:53 MST 2024

Total time taken to generate the page: 0.01605 seconds