Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » how do i, teleports
how do i, teleports [message #373112] Sun, 22 February 2009 22:41 Go to next message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma: 0
Colonel

how do i make it so.

say on canyon the tunnels how do i make it so you can only go into the tunnel with a sniper and if you don't have one you tele back to the spwaners?

Also is there away where i can make it so lets say nod can't shoot at gdi players while they are inside there base?

and also can anyone make me some Renegade commands like !refill to where the highest ranking play on gdi or nod can only use it, and so it only refills ammo?


Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide
Re: how do i, teleports [message #373113 is a reply to message #373112] Sun, 22 February 2009 22:48 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)
Vendetta wrote on Sun, 22 February 2009 21:41

how do i make it so.

say on canyon the tunnels how do i make it so you can only go into the tunnel with a sniper and if you don't have one you tele back to the spwaners?

Also is there away where i can make it so lets say nod can't shoot at gdi players while they are inside there base?

and also can anyone make me some Renegade commands like !refill to where the highest ranking play on gdi or nod can only use it, and so it only refills ammo?

Well teleports are easy..I guess you can find someone to edit it so only xxx preset can get it to work

and build lot of walls in front of base? only way i can think off
Re: how do i, teleports [message #373114 is a reply to message #373112] Sun, 22 February 2009 22: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)
I don't know if the script already exists, but it could be done with a script zone, and attach a script that on the ::Entered event checks the preset name of the object entering it. If it isn't a preset name that you want to be useing the tunnels, then teleport it to defined locations.
Maybe something like this:

void Vendetta_sniper_tele_zone::Entered(GameObject *obj,GameObject *enter){
if(((strcmp(Commands->Get_Preset_Name(enter),"sniper_preset_name1"))== 0) || ((strcmp(Commands->Get_Preset_Name(enter),"sniper_preset_name2"))== 0)){
//do nothing because they are a allowed sniper preset
}
else{
//they are not allowed to be there, so teleport them
Vector3 NewPosition;
//Have the new location as a user input param
NewPosition = Get_Vector3_Parameter("Location");
Commands->Set_Position(enter,NewPosition);
}
}



Re: how do i, teleports [message #373117 is a reply to message #373114] Sun, 22 February 2009 23:11 Go to previous messageGo to next message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma: 0
Colonel

reborn wrote on Sun, 22 February 2009 23:53

I don't know if the script already exists, but it could be done with a script zone, and attach a script that on the ::Entered event checks the preset name of the object entering it. If it isn't a preset name that you want to be useing the tunnels, then teleport it to defined locations.
Maybe something like this:

void Vendetta_sniper_tele_zone::Entered(GameObject *obj,GameObject *enter){
if(((strcmp(Commands->Get_Preset_Name(enter),"sniper_preset_name1"))== 0) || ((strcmp(Commands->Get_Preset_Name(enter),"sniper_preset_name2"))== 0)){
//do nothing because they are a allowed sniper preset
}
else{
//they are not allowed to be there, so teleport them
Vector3 NewPosition;
//Have the new location as a user input param
NewPosition = Get_Vector3_Parameter("Location");
Commands->Set_Position(enter,NewPosition);
}
}


how do i make scripts? i'm only good at modding..


Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide
Re: how do i, teleports [message #373118 is a reply to message #373117] Sun, 22 February 2009 23:37 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)
Vendetta wrote on Sun, 22 February 2009 22:11

reborn wrote on Sun, 22 February 2009 23:53

I don't know if the script already exists, but it could be done with a script zone, and attach a script that on the ::Entered event checks the preset name of the object entering it. If it isn't a preset name that you want to be useing the tunnels, then teleport it to defined locations.
Maybe something like this:

void Vendetta_sniper_tele_zone::Entered(GameObject *obj,GameObject *enter){
if(((strcmp(Commands->Get_Preset_Name(enter),"sniper_preset_name1"))== 0) || ((strcmp(Commands->Get_Preset_Name(enter),"sniper_preset_name2"))== 0)){
//do nothing because they are a allowed sniper preset
}
else{
//they are not allowed to be there, so teleport them
Vector3 NewPosition;
//Have the new location as a user input param
NewPosition = Get_Vector3_Parameter("Location");
Commands->Set_Position(enter,NewPosition);
}
}


how do i make scripts? i'm only good at modding..

Scripts are all C++ unless you know c++ dont even try, if you do then
http://www.renegadeforums.com/index.php?t=msg&th=26642&start=0&rid=2 2699
Re: how do i, teleports [message #373121 is a reply to message #373112] Sun, 22 February 2009 23:59 Go to previous messageGo to next message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma: 0
Colonel

i no good with programing


Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide
Re: how do i, teleports [message #373122 is a reply to message #373112] Mon, 23 February 2009 00:32 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 thought from this topic that you could program.
I'm not sure how you would do it in level edit alone.



Re: how do i, teleports [message #373130 is a reply to message #373112] Mon, 23 February 2009 01:19 Go to previous messageGo to next message
ErroR is currently offline  ErroR
Messages: 2984
Registered: March 2008
Location: Moldova
Karma: 0
General (2 Stars)
there is a test_cinematic script in level edit that reads a .txt script, try playing around with that one
Re: how do i, teleports [message #373155 is a reply to message #373122] Mon, 23 February 2009 07:38 Go to previous messageGo to next message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma: 0
Colonel

reborn wrote on Mon, 23 February 2009 01:32

Sorry, I thought from this topic that you could program.
I'm not sure how you would do it in level edit alone.

i don't know c++ i know a little VB

and what does that txt file have to say?

and hope you guy's can help me with this.

How would i go about making a tech weapon like in a ctf server how the techs have 1 shot kill.

Also how do i make it so when you load a map you spawn as lets say a eng?

I tried temp the gdi and nod spawn's and putting that in but when i joined in game i was a minigunner if i can't do that than i will just edit the minigunner.


Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide
Re: how do i, teleports [message #373156 is a reply to message #373112] Mon, 23 February 2009 07:40 Go to previous messageGo to next message
ErroR is currently offline  ErroR
Messages: 2984
Registered: March 2008
Location: Moldova
Karma: 0
General (2 Stars)
the txt must contain the script, altho i think only cinematic scripts will work. Try looking on renhelp
Re: how do i, teleports [message #373161 is a reply to message #373156] Mon, 23 February 2009 08:07 Go to previous messageGo to next message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma: 0
Colonel

ErroR wrote on Mon, 23 February 2009 08:40

the txt must contain the script, altho i think only cinematic scripts will work. Try looking on renhelp

i have been looking at renhelp.net i go there befor i go here lol.


Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide
Re: how do i, teleports [message #373166 is a reply to message #373112] Mon, 23 February 2009 08:50 Go to previous messageGo to next message
futura83
Messages: 1285
Registered: July 2006
Location: England
Karma: 0
General (1 Star)
Viva la Resistance!
Instead of teleporting them if they don't have a sniper, do it so that they are automatically transformed into a sniper when they walk into the tunnels.

I think there is already scripts that can do this.


This is a signature. Reading this is wasting your time.
Re: how do i, teleports [message #373168 is a reply to message #373166] Mon, 23 February 2009 09:10 Go to previous message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma: 0
Colonel

insert_name_here wrote on Mon, 23 February 2009 09:50

Instead of teleporting them if they don't have a sniper, do it so that they are automatically transformed into a sniper when they walk into the tunnels.

I think there is already scripts that can do this.

edut: ok i have that part done, when you enter the tunnel you buy a logan for free.

LOL i made the same scripted tmep the eng i wanted, covered the spawners with it now when u spawn your a eng lol that is cool and if you go in tunnels your a logan..


Thank you everyone i might have some more things to ask as i go


Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide

[Updated on: Mon, 23 February 2009 09:57]

Report message to a moderator

Previous Topic: Serial Hashing, How Secure?
Next Topic: Invisible animation
Goto Forum:
  


Current Time: Sat Dec 21 22:23:40 MST 2024

Total time taken to generate the page: 0.00882 seconds