Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Thoughts on 2.7 and beoynd
Thoughts on 2.7 and beoynd [message #194057] Mon, 27 March 2006 16:27 Go to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

Items with a * will need bhs.dll on the client
Here is a list of stuff I am considering for the next scripts.dll:
GameObject *Get_Owner(GameObject *obj); //Gets the owner of a vehicle
float Get_Lock_Time(GameObject *obj); //Gets the time a vehicle will remain locked to the owner
*void Set_Owner(GameObject *obj,GameObject *owner,float LockTime); //Sets the owner and lock time of a vehicle
*void Set_Lock_Time(GameObject *obj,float LockTime); //Sets the lock time of a vehicle
Note that entering a vehicle resets the owner, as does the expiration of the lock time (defaults to 26 seconds when you buy the vehicle)
*Send Disable_All_Collisions, Disable_Physical_Collisions & Enable_Collisions over the network.
Investigate why Action_Complete isnt being called
Engine calls to read data from PT (e.g. cost etc)
*Engine calls to change PT data at runtime
*Code to make the HUD more customizable (i.e. more hud.ini stuff).
Investigate the turret turn bug RenAlert reported.
Investigate why Daves Arrows dont work on the FDS
*A way to change the rendering mode to and from wireframe mode at runtime. (will be much like the vehicle limit change and will remain in effect untill changed again)
Possible fix to make ->Created get called for C4 objects
A new hook that will hook the "The version of player i is x.y" message output (you will recieve the player ID and the version number)
A console command to disable all C4 owned by <player>
A console command to disable all proximity C4 owned by <player>
Console commands to display information about a player and their vehicle (e.g. what preset they are, health, shield strength etc etc).
An engine call to create a script zone at runtime and set its size.
An engine call to resize a script zone at runtime.
I think these 2 will need bhs.dll on the client, not sure yet though.
*Changes to make "Health Is Full","Armour Is Full", "Ammunition is full" messages go over the network (I know where to change, the hard part is finding enough code to insert my hooks and making sure I get the right player ID and other information to pass though to the client)
Changes to make any missing report (or other) sounds (e.g. "Harvester Under Attack" or the cargo plane sound) go over the network. Note that SSAOW does play some of these itself which is why some servers have these being played. I have to work out which ones already play on the client and which ones need to be sent over the network.
(these will require bhs.dll on the client but they may be able to be written to use the existing sound send code and would then work with older bhs.dll versions too)
Engine calls to change the ammunition for a given player and a given gun (not sure which ones, if any, yet, I have to find the place it keeps the ammunition values first)
Console command to change the player limit at runtime (if I can find all the places to change to make it work)
Console command and engine call to get the current player limit
Engine call to get the time for a player (like Player_Info) if I can figure out how
Console Command to change the time remaining/time limit for the game if I can figure out how
Console Command/engine call to get the time remaining/time limit for the game if I can figure out how
Console Command/Engine call to end the game by timing out if I can figure out how
A hook for when a player leaves the game. (only if I can be sure that I am catching every possible "player left game" scenario AND I can be sure that no event could cause the player leave hook to be called twice for the same player)
Support for the side buttons on my Microsoft USB Optical Intellimouse.
A hud.ini feature so mods can make it so that you cant see the enemies player name (if I can figure out how)
fix LFDS RenRem (if I can figure out how)
renrem logging (only if I get LFDS RenRem working)
dialog box stuff (if I can find out enough about the in-memory layout of the relavent classes)
If the lag issue someone reported is an actual problem with my dll, I want to fix that.
Also, there is a crash blazer is encountering. Looks to be an SSAOW problem but if it turns out to be a scripts.dll issue, I will fix that too.


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: Thoughts on 2.7 and beoynd [message #194081 is a reply to message #194057] Mon, 27 March 2006 18:31 Go to previous messageGo to next message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

jonwil wrote on Tue, 28 March 2006 01:27


Console Command/engine call to get the time remaining/time limit for the game if I can figure out how


Whats wrong with The_Game()->TimeLimit_Minutes and The_Game()->TimeRemaining_Seconds ?


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
Re: Thoughts on 2.7 and beoynd [message #194088 is a reply to message #194057] Mon, 27 March 2006 19:12 Go to previous messageGo to next message
CnCsoldier08 is currently offline  CnCsoldier08
Messages: 136
Registered: November 2003
Karma: 0
Recruit
It seems you have been playign around with LevelEdit.

So, is there any chance you can make it so that there is a way to create script zones in shapes other than a square?


WOL:tweekbee
Re: Thoughts on 2.7 and beoynd [message #194113 is a reply to message #194057] Mon, 27 March 2006 21:17 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

script zones are always going to be a rectangular prisim.


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: Thoughts on 2.7 and beoynd [message #194118 is a reply to message #194081] Mon, 27 March 2006 22:05 Go to previous messageGo to next message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

Cat998 wrote on Tue, 28 March 2006 03:31

jonwil wrote on Tue, 28 March 2006 01:27


Console Command/engine call to get the time remaining/time limit for the game if I can figure out how


Whats wrong with The_Game()->TimeLimit_Minutes and The_Game()->TimeRemaining_Seconds ?



?


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
Re: Thoughts on 2.7 and beoynd [message #194129 is a reply to message #194057] Mon, 27 March 2006 23:36 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

Good point, I forgot about those Smile
Although the fact that you can have games with no time limit at all plays into this somehow...


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: Thoughts on 2.7 and beoynd [message #194130 is a reply to message #194057] Mon, 27 March 2006 23:40 Go to previous messageGo to next message
Whitedragon is currently offline  Whitedragon
Messages: 832
Registered: February 2003
Location: California
Karma: 1
Colonel
I dont think The_Game()->TimeRemaining_Seconds works right, it always seems to return garbage when i use it.

Black-Cell.net
Network Administrator (2003 - )

DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )

Dragonade, Renegade's first server side modification
Lead coder (2005 - )
Re: Thoughts on 2.7 and beoynd [message #194133 is a reply to message #194130] Mon, 27 March 2006 23:58 Go to previous messageGo to next message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

Whitedragon wrote on Tue, 28 March 2006 08:40

I dont think The_Game()->TimeRemaining_Seconds works right, it always seems to return garbage when i use it.


Change the data type from int to float and it will work Sarcasm


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
Re: Thoughts on 2.7 and beoynd [message #194134 is a reply to message #194057] Tue, 28 March 2006 00:18 Go to previous messageGo to next message
GrayWolf is currently offline  GrayWolf
Messages: 214
Registered: March 2006
Karma: 0
Recruit
is there a script or will there eer be a script that will allow day to turn to night and back to day....like regular day cycles if not that how about a script that changes the lighting of a map.

Re: Thoughts on 2.7 and beoynd [message #194136 is a reply to message #194057] Tue, 28 March 2006 01:32 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

Changing lighting at runtime is not possible.


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: Thoughts on 2.7 and beoynd [message #194139 is a reply to message #194057] Tue, 28 March 2006 04:22 Go to previous messageGo to next message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

The question is if you are able to make it possible Big Ups

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
Re: Thoughts on 2.7 and beoynd [message #194161 is a reply to message #194057] Tue, 28 March 2006 11:03 Go to previous messageGo to next message
Nightma12 is currently offline  Nightma12
Messages: 2593
Registered: August 2003
Karma: 0
General (2 Stars)
Category Moderator
Quote:

Console Command/engine call to get the time remaining/time limit for the game if I can figure out how


whats the point in that?

game_info anybody?
Re: Thoughts on 2.7 and beoynd [message #194196 is a reply to message #194161] Tue, 28 March 2006 15:22 Go to previous messageGo to next message
Kamuix is currently offline  Kamuix
Messages: 1247
Registered: May 2005
Location: Ontario, Canada
Karma: 0
General (1 Star)
Nightma12 wrote on Tue, 28 March 2006 13:03

Quote:

Console Command/engine call to get the time remaining/time limit for the game if I can figure out how


whats the point in that?

game_info anybody?


Me
Re: Thoughts on 2.7 and beoynd [message #194198 is a reply to message #194161] Tue, 28 March 2006 15:25 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Nightma12 wrote on Tue, 28 March 2006 19:03

Quote:

Console Command/engine call to get the time remaining/time limit for the game if I can figure out how


whats the point in that?

game_info anybody?



I am guessing it could be used to trigger scripts, such as When time left < 5 mins destroy HON, barracks or something, wacky example but you never know what people might want to do with something like that


http://steamsignature.com/card/1/76561197975867233.png
Re: Thoughts on 2.7 and beoynd [message #194208 is a reply to message #194057] Tue, 28 March 2006 17:33 Go to previous messageGo to next message
theplague is currently offline  theplague
Messages: 261
Registered: May 2004
Karma: 0
Recruit
:S is hooking renlog posible? like, kinda relay it into scripts like with chat ;P :S so getting page's will finaly work...lol

http://users.tpg.com.au/ling44/av_firefox.gifhttp://users.tpg.com.au/ling44/av_rg.gif
Re: Thoughts on 2.7 and beoynd [message #194212 is a reply to message #194136] Tue, 28 March 2006 18:07 Go to previous messageGo to next message
volkoller is currently offline  volkoller
Messages: 44
Registered: September 2005
Karma: 0
Recruit
jonwil wrote on Tue, 28 March 2006 03:32

Changing lighting at runtime is not possible.


nothing is impossible it just maders how hard u try to get what u want
Re: Thoughts on 2.7 and beoynd [message #194224 is a reply to message #194057] Tue, 28 March 2006 20:23 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

No renlog hook.
No wol page hook.
As for lighting, its all precalculated in leveledit (via Vertex Solve) or as prelit lightmaps (i.e. the westwood maps).


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: Thoughts on 2.7 and beoynd [message #194229 is a reply to message #194057] Tue, 28 March 2006 21:09 Go to previous messageGo to next message
Viking is currently offline  Viking
Messages: 1692
Registered: July 2005
Location: Earth
Karma: 0
General (1 Star)
whitedragon made the "impossible" parichute...

mabe he could make day/night transition too...



Toggle Spoiler


QUOTES
"The Renegade community revolves around having something awesome, and not sharing it so you can be on top of the mountain." -Canadacdn

Crimson wrote on Thu, 17 May 2007 05:22

Memphis wrote on Tue, 15 May 2007 03:54

...fatally die to death...


I don't know if you meant to do that, but triple redundancy for teh win. I LOL'ed.


Awesome l337 people= Icedog90, Blazea58, Canadacdn, Crimson, jonwil
Re: Thoughts on 2.7 and beoynd [message #194262 is a reply to message #194057] Wed, 29 March 2006 00:55 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

The way WD did parachutes is a Bug Ugly Hack (IMO).


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: Thoughts on 2.7 and beoynd [message #194283 is a reply to message #194057] Wed, 29 March 2006 03:29 Go to previous messageGo to next message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

I need a way to check if the players is on the bottom.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
Re: Thoughts on 2.7 and beoynd [message #194285 is a reply to message #194283] Wed, 29 March 2006 03:40 Go to previous messageGo to next message
nopol10 is currently offline  nopol10
Messages: 1043
Registered: February 2005
Location: Singapore
Karma: 0
General (1 Star)
What do you mean by bottom?

nopol10=Nopol=nopol(GSA)

http://i14.photobucket.com/albums/a330/napalmic/siggy.jpg
Re: Thoughts on 2.7 and beoynd [message #194300 is a reply to message #194057] Wed, 29 March 2006 07:03 Go to previous messageGo to next message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

I need a script that checks if the player is currently falling or

not, a hook that gets called when the player reaches the floor

after falling would be also nice Whats That


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."

[Updated on: Wed, 29 March 2006 07:04]

Report message to a moderator

Re: Thoughts on 2.7 and beoynd [message #194303 is a reply to message #194057] Wed, 29 March 2006 07:34 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

I dont think thats possible cat998, I dont know of any way to tell if a player is falling or not.


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: Thoughts on 2.7 and beoynd [message #194304 is a reply to message #194303] Wed, 29 March 2006 07:51 Go to previous messageGo to next message
Mad Ivan is currently offline  Mad Ivan
Messages: 513
Registered: February 2003
Location: United Kingdom
Karma: 0
Colonel
jonwil wrote on Wed, 29 March 2006 17:34

I dont think thats possible cat998, I dont know of any way to tell if a player is falling or not.



"is player's model playing the standard falling animation" Wink


Re: Thoughts on 2.7 and beoynd [message #194351 is a reply to message #194057] Wed, 29 March 2006 16:11 Go to previous messageGo to previous message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

I dont yet know how to get the animation name for a soldier, they use some funky human animation stuff thats difficult to figure out.
Also, checking the animation to figure something like this out seems like a hack to me 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
Previous Topic: Question for Modders or Anyone with knowledge of this stuff.
Next Topic: Red alert2:Apocaypse Rising Update (WM &Grizzly)
Goto Forum:
  


Current Time: Sun Nov 24 14:53:19 MST 2024

Total time taken to generate the page: 0.01171 seconds