Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » scripts.dll 1.5.1/1.6
scripts.dll 1.5.1/1.6 [message #78585] Sat, 10 April 2004 21:12 Go to previous message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma:
General (3 Stars)

I have had to abandon the script idea of checking for repairing vs not repairing because there is no way to make it work in all situations. I can detect each time a building is shot with the repair gunbut I dont know when the repairing stops. (in fact, its hard to define when it stops because it may stop when someone stops firing and then start again shortly after)

but for the idea I had, I can use this new script idea: JFW_Damaged_Send_Custom_Amount.
Basicly, this script takes one flag for greater than or less than and another value for the damage amount. Then, it will send the custom based on the greater than or less than flag and whether the damage amount is greater than or less than the amount specified.
So, what you can do is to have JFW_Damaged_Send_Custom_Amount send a custom only when damage < 0 (i.e. repairing is happening). Then, you can have it so that you have a very short animation (just 2 fast frames of e.g. an icon blinking from on to off) then use that animation with JFW_Set_Animation_On_Custom and set loop to false.
So, with jsut 2 scripts, you can have visual cues that a building is being repaired.


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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Custom c++ Scripting question
Next Topic: Broken Surface Effects
Goto Forum:
  


Current Time: Tue Dec 03 08:33:43 MST 2024

Total time taken to generate the page: 0.01137 seconds