Command and Conquer: Renegade Official Forums - RDF feed
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Only bugs, script ideas, new scripts etc posted here will be worked on. So, post: 1.all bugs that are in the dll here in this thread 2.any scripts you want me to make here in this thread (if its not in this thread, it wont get made. NO EXCEPTIONS. Cncgenocide this means you) 3.anything else to do with the dll here in this thread Also, any new code that has been written by someone else, send it to me so I can add it to the dll 1.4 and also post a note here in this thread so that I can keep everything in one place. So far, I have some reborn changes to merge in plus the stuff from Vloktboky (which probobly wont end up in 1.4 because it breaks all the rules of script coding plus its not really sutable to include anyway) So, if there are any other script changes that people have, let me know
I've sent you an email with the code for the latest RenAlert scripts.
Just in case you guys didn't know, TDA_Stealth_Armor doesn't work client side. I know that it's probably unfixable since scripts are triggered by the host.
SomeRhino Just in case you guys didn't know, TDA_Stealth_Armor doesn't work client side. I know that it's probably unfixable since scripts are triggered by the host. Yea...It looks like a stealth armor may never work
Well hey aint that about a bitch... I wanted these to stay secret for FOF but oh well i guess the publics going to see them now: Capture The Hand - When player enteres other players flag zone, the player gets the flag, then the cage becomes empty (hence on enter create zone, creation will be empty cage), when entering their own base, they have to enter their flag zone, once entered their flag zone the hand or (flag) will show up in the cage, and visa versa Switch Animation Zone - Once entering a specific zone, the main animation is changed, for instance once walking in the zone u will change to a swimming animation. Cirtain Player Stance On Vehicles- When entering a vehicle, the player/s inside show up with a specified stance. (We talked about this, and you said it was in production)
Genocide! Cirtain Player Stance On Vehicles- When entering a vehicle, the player/s inside show up with a specified stance. (We talked about this, and you said it was in production) Also, would it possible to enable the transition animations? You get in, you jump in the vehicle. You get out, you step out the vehicle.
Thats already possible, Somerhino did it on his extras buggy.
Genocide! Thats already possible, Somerhino did it on his extras buggy. Really? But how it was done?
Now that I think about it.....it's pretty simple. When you leave a vehicle, you send a message to the vehicle, same when you enter. All ya need to do is make an ActionParams structure and set it up to play the right animation.
SomeRhino Just in case you guys didn't know, TDA_Stealth_Armor doesn't work client side. I know that it's probably unfixable since scripts are triggered by the host. i knew that a while back when i was making a map.. i got bored when i found out the stealth armor would not work
Genocide! Thats already possible, Somerhino did it on his extras buggy. Naw, it doesn't actually work in-game. The farthest I made on doing transition animations would only work on vehicles that you knew the ID number of, and involved several scripts and a text cinematic. It would work on vehicles placed on the map, but not vehicles constructed by a factory, so I threw that out and the extras buggy now has a first-person view instead. I think the testers enjoy that one more anyway.
SomeRhino Genocide! Thats already possible, Somerhino did it on his extras buggy. Naw, it doesn't actually work in-game. The farthest I made on doing transition animations would only work on vehicles that you knew the ID number of, and involved several scripts and a text cinematic. It would work on vehicles placed on the map, but not vehicles constructed by a factory, so I threw that out and the extras buggy now has a first-person view instead. I think the testers enjoy that one more anyway. Can't you then make it work in a new script, that way the ID isn't needed?
Ways to do transitions and open-top vechicles and stuff are being worked on... Its just a matter of figuring out which of the various animation commands works properly in MP (Action_Play_Animation may work, we dont know yet. Set_Animation is confirmed to work since thats what Text Cinematics use) then using the right things on it. Also, if Set_Model works in MP, that opens up even more possibilities
Would it be possible to attach a script to a zone so becons wouldnt be able to be planted in that zone?
Deafwasp Well that would be down right stupid. No, it has some use, I have some buildings on a mod I'm working on that I dont want beaconed. Using this I could disallow beacons in that certain area.
SomeRhino Genocide! Thats already possible, Somerhino did it on his extras buggy. Naw, it doesn't actually work in-game. The farthest I made on doing transition animations would only work on vehicles that you knew the ID number of, and involved several scripts and a text cinematic. It would work on vehicles placed on the map, but not vehicles constructed by a factory, so I threw that out and the extras buggy now has a first-person view instead. I think the testers enjoy that one more anyway. You bet your ass we did
there is no way to stop beaconing
jonwil there is no way to stop beaconing Ah well, was worth a shot, I'll just have tofind another way around it...
I got a good game-mode. This is present in UT2003: Forgot what it was called but oh well. On a map there are 2 special zones. They begin neutral. One team has to activate (walking into it) both zones to score a point. Once a player has activated a zone, (say GDI activated it) It will turn a yellow-gold color. That player will have to defend the spot until someone from Nod walks into it and claims it for Nod. or someone else from GDI claims the other Zone also for GDI and GDI scores a point. Some teamwork is required to play. Simple idea really. OT: How are you making the scripts? And how would you go about scripting a game mode for example. I understand scripting cinematics or flybys easy enough, but not something interactive and consistent through the game.
And, its actually possible too. How does the game know when to end?
Time limit or score. Score limit can be set in the making of the map. (Not the best way, I know) Say something like 40 minutes or 30 points; whichever comes first.
I can do that. Using JFW_User_Settable_Parameters (a script that few people seem to use for some wierd reason), it would be possible to set both the points and time from the server.
Of course! How could I forget JFW_User_Settable_Parameters?
I think that mode was called Domination? To win you had to have the majority of the zones turned your color for a certain amount of time.
Cwazyape jonwil there is no way to stop beaconing Ah well, was worth a shot, I'll just have tofind another way around it... What about jsut deactivaqting the [ ]Projectile Collsion on the ground, so a becon will fal through
Blazer I think that mode was called Domination? To win you had to have the majority of the zones turned your color for a certain amount of time. Yes thats the one. I forgot to mention the time that you have to control them for.
Yeah it's called domination. From the original UT, you have around 3 zones (could be more), they have a spinning logo in them that is neutral to begin with when the game starts. When a team member walks into it, it turns to their teams color (thus capturing that zone until an enemy walks into it). Your team either starts of with a certain amount of points, or there is a limit set that you win on. For each zone you are able to to maintain control of, the points decrease/increase by 1 each second (or 1 every X seconds). Therefore, the more zones you hold, the faster the score increases/decreases. The winner is the team who reaches the target score first, be it decreasing to 0 or incrasing to a limit such as 300. Could be quite fun in Renegade, maybe you could get some animations that change color everytime a member of a team enters it. Also it may be wise to note that the zone should be fairly small to stop people camping on the zone and being able to fit more than 1 player inside it (C4 is an issue here too).
Laeubi Cwazyape jonwil there is no way to stop beaconing Ah well, was worth a shot, I'll just have tofind another way around it... What about jsut deactivaqting the [ ]Projectile Collsion on the ground, so a becon will fal through But wouldn't bullets/rockets/shells/mines fall through too?
Yes, C4 would be a problem. It could always be disabled in the making of the map, but it is a crude way to do it.
Renx Laeubi Cwazyape jonwil there is no way to stop beaconing Ah well, was worth a shot, I'll just have tofind another way around it... What about jsut deactivaqting the [ ]Projectile Collsion on the ground, so a becon will fal through But wouldn't bullets/rockets/shells/mines fall through too? yes there is a way. just create new armor that has no effect from beacon warheads. So only buildings with AntiBeacon armor wont be destroyable by the beacon!
jonwil 3.TheKGBspy, post details of all the scripts you want (including the other ones you said before) here in this thread. you posted this in the last tread in scripts.. but i never saw this reply lol. so can i post them in this tread?
ok, I dont see many script ideas here...
I am going to set a deadline of 7 febuary 2004. Any script ideas not posted in this thread by then wont be in 1.4
How about a script that plays a text cinematic after recieving 5 specific customs? You could use this, for instance, if you wanted the player to complete 5 objectives before a cinematic is triggered. If you wanted less objectives, you could just have the script send itself some customs to fill in the blanks. Maybe allow 10 customs? I don't know, just a suggestion.
There might be already a script for this, but how bout... When Player Type enters Script Zone A, it triggers a 3D sound at object A, B, C... I would use this for an intruder alarm sort of thing. And if you can already do this can you tell me how Also, If I recall there is a add script on zone enter, is it posible to have a remove script on zone enter/exit?
Also, there seems to be a bug with JFW_User_Settable_Parameters. When it is applied to the CTF Scripts, it causes the flags to stay in their zones and attaches a copy of the flag to the player when he enters the zone without removing it from its set location. I would assume this is a problem with the CTF scripts not being able to communicate with eachother when they are set up like that.
How about making a sript to make the Iron curtain possible? When the PP is still up, shooting at a certain building with an Iron curtain script attatched to it will just show a reddish-brick color shield. Like shooting a stealth tank, except that the building doesn't become invisible and doesn't take damage. (Unless the PP is out in which case it is just like a regular building.)
The "play cinematic on X customs" thing is possible, I know just how to make it work too as for 3d sound thing, there is JFW_3D_Sound_Zone, that does just what you want. As for removing scripts, the thing is, there is no way to do it. The CTF thing I dont know about, I didnt write the CTF scripts but I will keep it in mind as something to look into. As for the Iron Curtain, one way to do it would be to make a box preset that has collision settings for projectiles turned on but everything else (physical, vechicle etc) turned off. Then, you make one of these surrounding the building. Then when the PP blows up, you make the box go away. I also have some ideas as to how to make the effect work.
Quote: Blazer wrote: I think that mode was called Domination? To win you had to have the majority of the zones turned your color for a certain amount of time. Yes thats the one. I forgot to mention the time that you have to control them for. I thought that was UT's Domination. UT2003's Domination is where you have to control All the zones for 10sec to get points, then they are reset. Would it be possible to put Capture the Mobius back into renegade?
It involves a poke action and it works only for the player hosting the game.
Whats that poke script JW wrote that works in mplayer? Is it for objects that are "vehicles" only?
there are my requested scripts: Edit: duh i forgot to add pictures lol. they are coming. edit2: pictures fixed. NB: some of the falowing scripts may seem to be worthless, take time to read info i putted after each. - New Attach turret Script: Work same way as current reborn one.. except you can set a custom bone for the explosion. * Turret_Preset (preset name of the object to spawn) * Bone_Name (the name of the bone to attach the object to) * Explosion_Bone (Set where the exposion will be made) * Explosion_Preset (made at the Explosion Bone when the vehicle die to get rid of the object spawned) Useless? no i need it to work this way (customizable explosion bone) - Remake of the script that give damage on enter (when attached to a script zone) * Team_Targeted: Select wich team is supposed to receive this damage(Gdi, Nod, Unteamed or All) * Warhead: Select the type of warhead that the dammage will do * Damage: x value given when hit * Interval : Set up at wich interval the damage is done ex: every 2 sec. Why this new version of the current one? There is a bug that when you dont move inside the scripts zone no damage is given. When not moving no damage is applyed. BTW this is very important that the Unteamed option work. allow to kill unreachable vehicle that some place. - New Deploy scripts. the current scripts made by reborn has a bug, that cause any vehicle when they deploy to create the deployAnim and the deployed stated only in the x,y,z value on the map. there is no inclination done. Look at the next 2 pictures to see the problems if you havent undertsand what i tried to say: UnDelpoyed: http://www.drireign.net/TheKGBspy/ScreenShot19.jpg Deploying : http://www.drireign.net/TheKGBspy/ScreenShot20.jpg So that make the vehicle stuck in some condition. The idea is to use the same scripts code, but chnage one little thing: Instead of making it spawn something at X,Y,Z pos, make it attach to Custom bone or origin bone and then destroy the vehicle. this will give something like this: When the deploy trigger is done: Attach object to Origin bone, Make explosion to destroy the undeployed vehicle and only show the deploying anim. Same idea will does to deploying anim (attach instead of spawning at). - Teleport on enter if preset = Something. This scripts will be attached to a scripts zone. The Script_zone will look if there is a speciefic object having a X preset name. If its the case, it teleport this object (move) to) to X,Y,Z(dunno if this will be faster to teleport at a specified Object having XYZ and this object is unique in the map) the options of the script: *Alowed_preset: Define the allowed object to be teleported *Destination_preset(Or X, y, z as i stated before): Define the name of the object where the allowed preset should be teleported. - on death give x points to last shooter: i dont know if this is makeable, but if you can this would be Awsome. When this scripts is attached to an object, it will wait until the object get destroyed. everytime the object get hit by someone it keep the id of the player. when the object die it give x points to the last id keep. It should have object to keep id only of Gdi, nod or any team player. (ex: if i have a building and i shoot to the building wich is nod and i am nod, and i setted the keep_id_team option to gdi only, it wont keep my id if the building is destroyed lol) script options: *Points: Set the number of points given the to "destroyer" *Team_id: Set wich last id player the script can keep if its in this team Can you put the prefix Ra2 in front of these scripts? Ra2_jfw i dont care, i just wanna see the ra2 at the beginning plz more to come
Attatch Turret script change/addition I can do. Basicly, instead of making the explosion at the parameter Bone_Name, it will make it at the parameter Explosion_Bone_Name As for the damage on enter, I will fix it to do damage even when the thing doesnt move. Basicly, when something enteres the zone, it records its ID and starts a timer. Then, when the timer triggers, damage is done. Regardless of if the object moves or not (or how far it moves), damage will continue to be done at the same rate untill the object moves <distance passed in as a parameter> away from the location of the zone. Will look into the deply scripts to see if its a bug or what Teleport on enter if preset is easy, I will make that As for the give points thing, basicly, the points will be given to whatever object is the "killer" (i.e. whichever object actually killed the thing) No, I wont put the prefix RA2_ on these
also about the damage script zone dont forget to add the "hurted" team plz: Gdi, Nod, Unteamed, Any.
jonwil As for the give points thing, basicly, the points will be given to whatever object is the "killer" (i.e. whichever object actually killed the thing) oh btw, about this, i want points because if i set something destroyable but the team is unteamed, the "killer" wont get any point to destroying it. why making it unteamed? u just dont want it to be killed by bot (instead of putting it as unteamed put it as Gdi, so nod bots or defences will kill it wich its exaclty what i dont want.)
juts a little modification to theses scripts: - on death give x points to last shooter: i dont know if this is makeable, but if you can this would be Awsome. When this scripts is attached to an object, it will wait until the object get destroyed. everytime the object get hit by someone it keep the id of the player. when the object die it give x points to the last id keep. It should have object to keep id only of Gdi, nod or any team player. (ex: if i have a building and i shoot to the building wich is nod and i am nod, and i setted the keep_id_team option to gdi only, it wont keep my id if the building is destroyed lol) script options: *Points: Set the number of points given the to "destroyer" *Team_id: Set wich last id player the script can keep if its in this team *Team_id: Set wich last id player the script can keep if its in this team will have option between Gdi, nod, or any. - Teleport on enter if preset = Something. This scripts will be attached to a scripts zone. The Script_zone will look if there is a speciefic object having a X preset name. If its the case, it teleport this object (move) to) to X,Y,Z(dunno if this will be faster to teleport at a specified Object having XYZ and this object is unique in the map) the options of the script: *Alowed_preset: Define the allowed object to be teleported *Destination_preset(Or X, y, z as i stated before): Define the name of the object where the allowed preset should be teleported. *Explosion_preset: it will do an explosion where the object is supposed to be teleported before teleporting it.There will be a delay to not kill the teleported object. Btw the teleported object will has same direction as the Destination object. other scripts: - Spawn object on death Same direction. Basicly it work like the original spawn on death, but now it make the spawned object have the same direction of the killed object. - Teleport to destination preset if the preset name != Something That the opposite of the other one i asked. it just make object dont having the preset name setted to be teleported to the destination object. *Preset_name_no_teleport: Set the preset name. *Object_destination: Name of the object where the non-selected object will be teleported. *Explosion_preset: it will do an explosion where the object is supposed to be teleported before teleporting it.
jonwil Teleport on enter if preset is easy, I will make that As for the give points thing, basicly, the points will be given to whatever object is the "killer" (i.e. whichever object actually killed the thing) No, I wont put the prefix RA2_ on these Im interested in both these scripts... For the teleport on enter can there be a keycard parameter..such as 0=none ,1=key 1 and so forth. on this killing point value...can you make a specific zone to only give out kill's to a player in this zone(kills outside this zone arent counted)....This would help with a King of the Hill map where a player picks up a keycard that's spawned ,then enters a teleporter with this keycard and teleports to the hill where a zone will be counting only players in this zone's kills,then possibly use the DM script to end map on x amount of kills from that zone by any team or certain player.
renegay3 Would it be possible to put Capture the Mobius back into renegade? SeaMan It involves a poke action and it works only for the player hosting the game. What about makeing it so that when you shoot him he follows you, instead of the poke?
Just wondering if I am extending scripts.dll is there any way in my scripts that I can get: The current player name ? The current player score ? The current number of team-mates killed? Thanks, Gib
TheKGBspy jonwil As for the give points thing, basicly, the points will be given to whatever object is the "killer" (i.e. whichever object actually killed the thing) oh btw, about this, i want points because if i set something destroyable but the team is unteamed, the "killer" wont get any point to destroying it. why making it unteamed? u just dont want it to be killed by bot (instead of putting it as unteamed put it as Gdi, so nod bots or defences will kill it wich its exaclty what i dont want.) Just set the damage points to 0 and the destroypoints to 100 or whatever will give you the needed effekt without any scripts...
well yea if its an "ennemy" to the player. but if its an Unteamed object you cant get point from killing it! that why im asking for this script
Its not visible to the scripts.dll Remember, scripts operate server-side so there is no conecpt of "current player"
gibberish Just wondering if I am extending scripts.dll is there any way in my scripts that I can get: The current player name ? The current player score ? The current number of team-mates killed? Let me re-phraze that question. If I have an GameObject * that represents a player is it possible to retrieve the: - Player name - Player score - Player teammate kill stat. Additonally would anybody be able to explain how damage works for vehicles if player (A) is in a vehicle and player (B) is on foot and they both shoot at each other. Damage appears to come from the relevant player objects, however damage can only be done to the player on foot. Thanks, Gib
I think there is a Get_Score but no others.
What about some sort of mobile radar jamming device, where if you get a certain vehicle within a range of the enemy's comm center (in a script zone) Their radar gets disabled, and when you exit the zone, it comes back on. This could serve as cover for infantry infiltrating into an enemy base, not to mention a distraction so the enemy goes after the jammer.
hey jonwil, can u make a script in which the armour can regenerate, but after a few seconds, and it regenerats pretty fast. armour regeneration basically not health.
Radar jamming isnt possible. But, the other one with the armour is definatly possible.
when u get a kill and the kill is listed on the stats/score is that thru a script or the source code itself...im thinking the source code, But I may aswell ask...can a script zone report all kills from withen that zone to the score/stats only...any kill's outside that zone arent counted? Also an old idea...a beacon script zone thats team specific....that way no building controller isnt needed for the map to indicate team ped's. Since we know that the teleport script works with MP...maybe we can add some options...like the above mentioned,keycards access and if preset/explosion, How about a randomizer to a few different locations...so you dont know where your going to end up.
jonwil Radar jamming isnt possible. Hmm... General Havoc Can Already be done using scripts. Attach a "_Zone_Send_Custom" script to a script zone then get it to send a custom to "JFW_Toggle_Radar", which disables the radar for the team you specify. Then attach "JFW_Death_Send_Custom" to the powerplant and comms(automatically does it for comms anyway) to send a custom to the zone which destroys the zone and disables the radar "JFW_Custom_Destroy_Object".
Isn't radar jamming used on the 2nd SP mission? When you approach the Comm. centre, your radar is shut of until you're out of its range.
firstly, radar jamming does work but not in MP. Secondly, the kills go through the score code not the scripts team-specific beacon script, cant be done As for "random teleport", thats possible I will also be making modifications to JFW_Zone_Send_Custom_Enable, TDA_Send_Custom_Zone and JFW_Zone_Send_Custom_Preset such that: 1.passing an EnterMessage or ExitMessage will cause no message at all to be sent and 2.passing an EnterParam or ExitParam of 0 will cause "the ID of the thing that triggered the zone entry or exit" to be sent as the parameter. My new script to be written, JFW_Zone_Send_Custom_Keycard will also work the same way.
jonwil I think there is a Get_Score but no others. Ok, sorry I missed that one, thanks. :oops: Anyhow I have wierd bug, I am not sure if its something I have done or something in the scripts.dll before I modified it, however I seem to be getting excessive damage between infantry. Basically all infantry verse infantry damage appears to be applied twice. I have noticed this when others kill me and when I shoot others. And before you ask no I don't have any cheats/lagbots/skins installed, my client side is totally vanilla. Has anyone else seen this? The only thing I can think of is that I have Friendly Fire on, would this have any effect ? Thanks, Gib
I dont see any reason why the scripts.dll would cause problems with damage.
Idea. With C&C Reborn, the scripts display the number of MK2's and cyborgs in the top right corner of the screen. Would it be possible to display the amount of GDI/Nod kills for the Team DM mode? Could make an useful addition to 1.4 if it isn't too hard to do.
sorry
Found the original plans for KOTH BTW my map is 90% complete and ready for scripts. - Only_King_Can_Score Whether or not only the KOTH can score points. (prehaps a zone where only the points will be issued to the person in the zone) - Koth_Damage_Multiplier A factor > 1 that scales all damage done by the KOTH.(a zone that multiplys the objects damage by 2,or variable) I can get away with some spawners that have 100 points in them each and the longer you stay king the more points you get....and I was going to use the keycard script to enter a teleporter that will be the only way to reach the hill...and keycards will be limited to 1 per side every 60 seconds...also was going to take out all repair guns and proxy c4.
General Havoc Idea. With C&C Reborn, the scripts display the number of MK2's and cyborgs in the top right corner of the screen. Would it be possible to display the amount of GDI/Nod kills for the Team DM mode? Could make an useful addition to 1.4 if it isn't too hard to do. Alas, the display only shows up on the host's screen.
hi are these new scrips compatibel with linux servers?
Ok, sorry to be a pain, a couple more questions: 1.> The M00_GrantPowerup_Created script can be used as a quick hack to add a server script in a standard game, which allows actions to be taken with the player object. Is there anything similar that I can use to associate a script with a vehicle on standard maps. Primarly I want to trigger an action when someone gets in or out of a vehicle. 2.> Is there any way to find out the current map name from scripts.dll ? Thanks, Gib
1.There is no script that is attatched to all vechicles by default that you can hook into. 2.There is no way to get the current map name via scripts and 3.the scripts currently dont work with the linux FDS but we are investigating ways to make them work.