Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » set object type for vehicles
set object type for vehicles [message #471803] Tue, 17 July 2012 08:20 Go to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
ive made it possible to enter emplacements defences for players

but when a player gets out it should set its type back to the correct team

It DOES set the team but players dont see that is it possible to force an update on that?


Owner of kambot TT server

kambot.freeforums.org
Re: set object type for vehicles [message #471805 is a reply to message #471803] Tue, 17 July 2012 08:50 Go to previous messageGo to next message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma: 0
Colonel

robbyke wrote on Tue, 17 July 2012 10:20

ive made it possible to enter emplacements defences for players

but when a player gets out it should set its type back to the correct team

It DOES set the team but players dont see that is it possible to force an update on that?


Use a timer when the exit they gun emplacement to reset the team 0.01f, after the player gets out.


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

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

Cookie Jar

Suicide

[Updated on: Tue, 17 July 2012 08:50]

Report message to a moderator

Re: set object type for vehicles [message #471807 is a reply to message #471803] Tue, 17 July 2012 08:59 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
The number of times I have had to do that hack in scripts in prevent things crashing or getting out of sync when you do things too quickly is amazing... got to love Renegades netcode Very Happy

http://steamsignature.com/card/1/76561197975867233.png
Re: set object type for vehicles [message #471808 is a reply to message #471803] Tue, 17 July 2012 09:06 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
thnx should have thought about that

Owner of kambot TT server

kambot.freeforums.org
Re: set object type for vehicles [message #471854 is a reply to message #471803] Tue, 17 July 2012 18:27 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

If you want to force an object to sync up netcode wise, call Update_Network_Object.
If you have ejected a player from a vehicle with an engine call, you have to wait for some function to run (e.g. via a timer) to allow the normal engine code to run and carry out the normal player eject player.

If you are inside a handler for CUSTOM_EVENT_VEHICLE_EXITED, you also need a time delay.


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: set object type for vehicles [message #471866 is a reply to message #471803] Wed, 18 July 2012 02:15 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Why does the engine at transition start teleport your position and at the end (in a second function) actually do the rest of the transition (e.g. leave or enter a vehicle)?

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: set object type for vehicles [message #471910 is a reply to message #471866] Wed, 18 July 2012 11:31 Go to previous message
Jerad2142 is currently offline  Jerad2142
Messages: 3812
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Probably was old code left over from when your character used to animate when getting in and out of vehicles my guess would be.

Previous Topic: is stealth
Next Topic: !para
Goto Forum:
  


Current Time: Wed Dec 18 03:13:03 MST 2024

Total time taken to generate the page: 0.00879 seconds