Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » New scripts features in scripts 4.2
New scripts features in scripts 4.2 [message #489250] Thu, 11 September 2014 04:53 Go to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

Here is a list of all the interesting mod-usable features currently in scripts 4.2 that are not in 4.1. I make no promises that things wont change between now and release if bugs appear or the like but this is where things currently stand.

New function call on vehicle objects to check if any of the wheels of a vehicle are on a given surface type.
New collision type that collides only with DEFAULT, SOLDIER and SOLDIER_GHOST (not sure what its useful for but its there Smile
New GDIPurchaseReportID and NodPurchaseReportID settings on vehicles in LE that (if set) will be displayed when the vehicle is purchased by a player of the given team. (the matching sound will be played too, it uses the same code path as EVA announcements like "nuclear missile launched" or "building destroyed")
New CanRepair flag on vehicles in LE that if disabled will prevent repair bay building objects and various repairing scripts from repairing that vehicle.
New EntryHelpMessage and EntryHelpMessageColor settings on vehicles in LE that if set will cause the given message to be displayed in the given color. It uses the same "display text in the center of the screen" logic as you see in single player for various things.
New ApplySurfaceEffectDamage flag on vehicle in LE. Enable this and it will apply surface effect damage to the vehicle based on which surface types its wheels are touching. (what it does is to loop through all the wheels and apply surface effect damage for the first wheel it finds where the wheel is touching a surface that has surface effect damage, i.e. if the wheels are touching two different surfaces with different surface effect damage settings, which one gets applied is undefined)
New CanRefill on soldiers in LE, turn this off to make it so that the given soldier type cant refill. Only applies for the sidebar, not the normal PTs.
Per-team sound support for the sidebar sounds (i.e. different sounds for GDI and Nod)
New engine calls Get_Clouds, Get_Lightning, Get_Wind, Get_Rain, Get_Snow and Get_Ash that do just what they say (return the value as set by the Set_x commands or by settings in LE or whatever)
Make the NoPowerCostMultiplier flag (determines the cost multiplier when buying stuff after power is down) and BuildTimeDelay (determines the build time delay when buying stuff after power is down) settable per-map in the per-map tt.ini file
New entry in server.ini DisableLogs that if set to true will cause all disk logs not to be made (intended if you are using something that connects to SSGM for logging and dont need the normal disk logs made anymore)
Building revival support, there are console commands for it or you can call the new On_Revived function on any building controller object to revive it. Building revival undoes 100% of the things that building destruction does including bringing the obelisk and AGT scripts back to life.
Set_Is_Rendered now works for things other than vehicles (assuming both server and client have a recent enough scripts build that is)
Improved the way naval factory objects check for things blocking the spawn point so they work more like vehicle factory objects.
Removed code to generate sysinfo.txt (it was obsolete and useless e.g. it didn't properly identify any CPU or GPU made in the last decade or so)
Made construction yard building controllers repair any physical object with an encyclopedia type of "building" (e.g. simple objects). Previously it would only repair vehicles with an encyclopedia type of "building".
New settings in LE for power offline strings so that GDI and Nod can have different strings (i.e. string for GDI when GDI power goes offline, string for Nod with GDI power goes offline, string for GDI when Nod power goes offline and string for Nod when Nod power goes offline)
Fix a bug present since stock where a CollisionMode of type "KILL" wouldn't work.
Make things flying in for a helipad building controller uncollideable until it lands and becomes enterable (this prevents stuff crashing into it as well as stuff shooting at an incoming unit when the unit cant fight back)

This list doesn't cover bug fixes we have made (like the fix so that if you change the weapon or model of a vehicle, the muzzle flash is properly reset and doesn't screw up)


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: New scripts features in scripts 4.2 [message #489251 is a reply to message #489250] Thu, 11 September 2014 05:01 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

Oh yeah one more feature I am going to add is a flag on vehicles that says "dont play surface sounds for this vehicle" (i.e. tank tread sounds etc). Its intended for vehicles that dont actually use wheels/treads (such as hover vehicles or walkers/mechs) and therefore shouldn't have surface sounds played.



Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: New scripts features in scripts 4.2 [message #489253 is a reply to message #489250] Thu, 11 September 2014 11:13 Go to previous messageGo to next message
zunnie is currently offline  zunnie
Messages: 2959
Registered: September 2003
Location: Netherlands
Karma: 0
General (2 Stars)

Nice. Good job. Thanks.

https://multiplayerforums.com/uploads/monthly_2018_03/TCW2_Signature.png.6236a0dbc6e1e53472a18fe8cd15e47b.png
Re: New scripts features in scripts 4.2 [message #489429 is a reply to message #489250] Sat, 27 September 2014 13:12 Go to previous messageGo to next message
N1warhead is currently offline  N1warhead
Messages: 319
Registered: May 2006
Location: On the Pc
Karma: 0
Recruit

Wow I haven't been to the community in forever, glad y'all are still making scripts! It's surprising, but I'm glad y'all are! Keep rene alive!!!



www.cncmodders.com All your C&C Modding Tutorials/Downloads/Forums, etc! Conquering the C&C universe with a rush of MEDS and MRLS!
Re: New scripts features in scripts 4.2 [message #489430 is a reply to message #489250] Sat, 27 September 2014 15:48 Go to previous messageGo to next message
Ethenal is currently offline  Ethenal
Messages: 2532
Registered: January 2007
Location: US of A
Karma: 0
General (2 Stars)

looks great, keep up the good work!

-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29

Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade Thumbs Up

Re: New scripts features in scripts 4.2 [message #489431 is a reply to message #489250] Sat, 27 September 2014 16:33 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
Awesome! Big Ups
Love you guys In Love


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: New scripts features in scripts 4.2 [message #489471 is a reply to message #489431] Wed, 01 October 2014 05:11 Go to previous messageGo to next message
sla.ro(master) is currently offline  sla.ro(master)
Messages: 610
Registered: September 2010
Location: Romania
Karma: 0
Colonel
awesome, let's hope someday we will be able to have better shaders like bloom, HDR, montion blur, texture bumping etc.

Creator of Mutant Co-Op
Developer of LuaTT
Re: New scripts features in scripts 4.2 [message #490505 is a reply to message #489250] Sun, 15 February 2015 06:16 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

Some more changes/new features people may want to know about (all of which can be checked out via the scripts build I just posted):

New DisableSurfaceSounds flag on vehicles in LE that if set switches off track/wheel sounds (intended for units like walkers or hover vehicles). Does not affect track/wheel emitters.
New TargetingRange on ammo in LE that lets you have a different targeting range than the actual weapon range. If the targeting range is left at the default of -1, it will use the weapon range as the targeting range (like it does in stock etc)
New engine call Update_Network_Object_Player which updates a network object for a specific player (it exists for the SSGM Spectate plugin and replaces a hack we were using previously involving Send_Object_Update)
New engine call Update_Game_Options which lets you change things in cGameData/The_Game (stuff like radar mode etc) and force a network send for those changes so all currently-connected clients get the new value
New engine calls GetTTVersion and GetTTRevision that do exactly what they say, they get the version and revision from bandtest.dll.
New IgnoreForTracking flag on objects in LE that if set causes the object to be totally ignored by the tracking/homing code in the weapon logic.
New WinScreenGDIColor and WinScreenNodColor entries in hud.ini (that work just like the other color entries in that file) that let you change the colors used for the win text on the multiplayer win screen
Custom load-screen support (details of which can be found in https://secure.w3dhub.com/forum/index.php?showtopic=414488 )
Per-map sky color overrides (details of which can be found in https://secure.w3dhub.com/forum/index.php?showtopic=414506 )
New engine call Set_HUD_Help_Text_Player which displays something for the given player using the HUD help text (the text in the middle of the screen in single player)

EDIT: Turns out those tutorials aren't ready for prime time yet, links wont work for now Smile


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies

[Updated on: Sun, 15 February 2015 15:08]

Report message to a moderator

Re: New scripts features in scripts 4.2 [message #490507 is a reply to message #489250] Mon, 16 February 2015 04:52 Go to previous messageGo to next message
[-HOH-]szymek777 is currently offline  [-HOH-]szymek777
Messages: 45
Registered: June 2013
Location: Poland
Karma: 0
Recruit
I want Zunnie's scripts back
Re: New scripts features in scripts 4.2 [message #490508 is a reply to message #489250] Mon, 16 February 2015 07:08 Go to previous messageGo to next message
Generalcamo is currently offline  Generalcamo
Messages: 522
Registered: October 2010
Karma: 0
Colonel
Why exactly?
Re: New scripts features in scripts 4.2 [message #490509 is a reply to message #489250] Mon, 16 February 2015 12:03 Go to previous messageGo to next message
dblaney1 is currently offline  dblaney1
Messages: 358
Registered: March 2014
Location: United States
Karma: 0
Commander
Only a few of them should definitely be added back like z_capturable_object, z_capturable_tibsilo, z_capturable_helipad, etc. I actually wrote clone scripts for these that are much cleaner.

The rest of the duplicate scripts aren't necessary and I am not a fan of making exact duplicates of scripts. I always try to make use of existing scripts before writing my own.
Re: New scripts features in scripts 4.2 [message #490511 is a reply to message #490507] Mon, 16 February 2015 14:12 Go to previous messageGo to next message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma: 0
General (1 Star)
[-HOH-

szymek777 wrote on Mon, 16 February 2015 06:52]I want Zunnie's scripts back



They were a waste of space and exact duplicates of code that already exists in the scripts.dll. Ever since his useless code got removed, compiling has been a breeze.


http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg

Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.

Part time streamer - https://twitch.tv/gg_wonder
Re: New scripts features in scripts 4.2 [message #490513 is a reply to message #490511] Mon, 16 February 2015 17:28 Go to previous messageGo to next message
roszek is currently offline  roszek
Messages: 296
Registered: June 2010
Karma: 0
Recruit
Xpert wrote on Mon, 16 February 2015 14:12

[-HOH-

szymek777 wrote on Mon, 16 February 2015 06:52]I want Zunnie's scripts back



They were a waste of space and exact duplicates of code that already exists in the scripts.dll. Ever since his useless code got removed, compiling has been a breeze.


Yes! Much quicker.
Re: New scripts features in scripts 4.2 [message #490514 is a reply to message #490511] Tue, 17 February 2015 07:17 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3811
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Xpert wrote on Mon, 16 February 2015 14:12

[-HOH-

szymek777 wrote on Mon, 16 February 2015 06:52]I want Zunnie's scripts back



They were a waste of space and exact duplicates of code that already exists in the scripts.dll. Ever since his useless code got removed, compiling has been a breeze.

My issue with them was simply the quantity of .cpp and .h files it added, made a mess to look through the code for me.


Re: New scripts features in scripts 4.2 [message #490515 is a reply to message #489250] Tue, 17 February 2015 10:09 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
My issue was that an awful lot of the scripts were copy-pastes of each other with one string changed in the code... which not only duplicated functionality that already existed in other scripts, but could easily have had a parameter input rather than duplicating the code tens of times.

There might have been the odd useful script here and there but they were far outweighed by the driftwood.


http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Tue, 17 February 2015 10:10]

Report message to a moderator

Re: New scripts features in scripts 4.2 [message #490516 is a reply to message #490515] Tue, 17 February 2015 10:46 Go to previous message
Jerad2142 is currently offline  Jerad2142
Messages: 3811
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
danpaul88 wrote on Tue, 17 February 2015 10:09

My issue was that an awful lot of the scripts were copy-pastes of each other with one string changed in the code... which not only duplicated functionality that already existed in other scripts, but could easily have had a parameter input rather than duplicating the code tens of times.

There might have been the odd useful script here and there but they were far outweighed by the driftwood.

Too many copy paste scripts to find the useful ones at that point.


Previous Topic: Some discoveries/useful info about "compute vertex solve"
Next Topic: Scripts development is currently on hold
Goto Forum:
  


Current Time: Mon Nov 25 10:51:33 MST 2024

Total time taken to generate the page: 0.01052 seconds