Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » defenses fire at each other
defenses fire at each other [message #466586] Tue, 24 April 2012 16:27 Go to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
i remade JFW_Base_Defence

and i works perfect however (using a guardtower and a turret) i added that it shouldnt attack if their target has no moveable physics.
but stil the guardtower and turret attack eachother

the code wich i forgot :
Toggle Spoiler



Owner of kambot TT server

kambot.freeforums.org

[Updated on: Wed, 25 April 2012 00:50]

Report message to a moderator

Re: defenses fire at each other [message #466601 is a reply to message #466586] Tue, 24 April 2012 21:36 Go to previous messageGo to next message
liquidv2 is currently offline  liquidv2
Messages: 3407
Registered: February 2007
Karma: 0
General (3 Stars)
this is very exciting news

liquidv2
Re: defenses fire at each other [message #466602 is a reply to message #466586] Tue, 24 April 2012 21:41 Go to previous messageGo to next message
liquidv2 is currently offline  liquidv2
Messages: 3407
Registered: February 2007
Karma: 0
General (3 Stars)
oh; are you actually asking for help with getting the turrets to stop attacking the guard towers? i thought you were just letting us know of the great news

liquidv2
Re: defenses fire at each other [message #466609 is a reply to message #466586] Wed, 25 April 2012 00:42 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
oh wow i thought you were smarter then that i almost do nothing else then ask help here Wink nice you noticed

i forgot to add the code


Owner of kambot TT server

kambot.freeforums.org

[Updated on: Wed, 25 April 2012 00:51]

Report message to a moderator

Re: defenses fire at each other [message #466610 is a reply to message #466586] Wed, 25 April 2012 03:43 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Well that's hardly surprising since guard towers and turrets are actually vehicles (albeit stationary) and thus DO have movable physics Rocked Over

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

[Updated on: Wed, 25 April 2012 03:43]

Report message to a moderator

Re: defenses fire at each other [message #466611 is a reply to message #466586] Wed, 25 April 2012 03:46 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3555
Registered: February 2003
Karma: 0
General (3 Stars)

actually, no, I suspect the objects in question have physics of type DecorationPhys which means they dont move.


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: defenses fire at each other [message #466613 is a reply to message #466586] Wed, 25 April 2012 04:50 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Really? I thought all vehicles derives from MovablePhys. Learn something new every day Smile

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

[Updated on: Wed, 25 April 2012 04:51]

Report message to a moderator

Re: defenses fire at each other [message #466614 is a reply to message #466586] Wed, 25 April 2012 05:04 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3555
Registered: February 2003
Karma: 0
General (3 Stars)

Nope, vehicles dont have to be moveable physics.
The rule is (at least after various fixes made in 4.0) that if you can select it from the physics type dropdown, it can be used.

So soldiers can only use HumanPhys (for example)


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: defenses fire at each other [message #466620 is a reply to message #466601] Wed, 25 April 2012 06:11 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4300
Registered: April 2011
Karma: 0
General (4 Stars)
liquidv2 wrote on Tue, 24 April 2012 21:36

this is very exciting news

he's gonna hack the matrix man


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: defenses fire at each other [message #466628 is a reply to message #466611] Wed, 25 April 2012 07:21 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
danpaul88 wrote on Wed, 25 April 2012 12:43

Well that's hardly surprising since guard towers and turrets are actually vehicles (albeit stationary) and thus DO have movable physics Rocked Over


jonwil wrote on Wed, 25 April 2012 12:46

actually, no, I suspect the objects in question have physics of type DecorationPhys which means they dont move.



leveledit states they are decorationphys,
i just wonder now though how can i test if the target is a stationary defence?



Owner of kambot TT server

kambot.freeforums.org
Re: defenses fire at each other [message #466629 is a reply to message #466586] Wed, 25 April 2012 07:27 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3555
Registered: February 2003
Karma: 0
General (3 Stars)

Try
if (Get_Vehicle_Mode(obj) == VEHICLE_TYPE_TURRET)
{
//blah
}

You will need to #include "VehicleGameObjDef.h"


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: defenses fire at each other [message #466634 is a reply to message #466586] Wed, 25 April 2012 08:19 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
stil the same

Owner of kambot TT server

kambot.freeforums.org
Re: defenses fire at each other [message #466687 is a reply to message #466634] Thu, 26 April 2012 05:49 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3805
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Please make sure of the following:
1. You don't have two defense scripts on the turret do you? (keep in mind some presets have base defense scripts on them by default).
2. Your not placing this script on the agt guns or something like that.
3. The scripts are for sure being updated in the Renegade folder.


Re: defenses fire at each other [message #466697 is a reply to message #466586] Thu, 26 April 2012 08:42 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
i thought about scripts already present ar first to but i removed all present scripts on the objects.

i dont get what you mean with the third one


Owner of kambot TT server

kambot.freeforums.org
Re: defenses fire at each other [message #466780 is a reply to message #466697] Fri, 27 April 2012 21:19 Go to previous message
Jerad2142 is currently offline  Jerad2142
Messages: 3805
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
I have my scripts export directly to ren's folder on compile, as a result there are times where another program will be using scripts (Level editor or game.exe) which prevents the update from compiling and thus to last compiled version remains.

I'm only tossing these ideas out because I don't see any other reason why the turrets would keep attacking each other.


Previous Topic: Have their been any good moddable first person games since Renegade?
Next Topic: scripts when changing character
Goto Forum:
  


Current Time: Sun Jun 09 10:58:54 MST 2024

Total time taken to generate the page: 0.01157 seconds