Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » defense scripts when weapon changes
defense scripts when weapon changes [message #465161] Fri, 30 March 2012 20:29 Go to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
if i give another weapon trough a powerup
then select it and attach a a base defense script
the defense wont fire at the correct distance

sometimes it fires when youre exactly in front of it.

i thought those scripts just fired the primary attack of the gun they had.

ive tried it with the normal weapons,defense weapons,and veh weapons

they give different results but never the range theyre supposed to have


Owner of kambot TT server

kambot.freeforums.org
Re: defense scripts when weapon changes [message #465163 is a reply to message #465161] Fri, 30 March 2012 21:57 Go to previous messageGo to next message
Whitedragon is currently offline  Whitedragon
Messages: 832
Registered: February 2003
Location: California
Karma: 1
Colonel
Make sure the SightRange of the object is correct for the weapon you're giving it. Check it in leveledit.

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: defense scripts when weapon changes [message #465172 is a reply to message #465161] Sat, 31 March 2012 03:53 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
does it have to be 100% correct?

i found it the model prevented vision therefore it couldnt see its target


Owner of kambot TT server

kambot.freeforums.org

[Updated on: Sat, 31 March 2012 04:20]

Report message to a moderator

Re: defense scripts when weapon changes [message #465175 is a reply to message #465161] Sat, 31 March 2012 04:15 Go to previous messageGo to next message
zunnie is currently offline  zunnie
Messages: 2959
Registered: September 2003
Location: Netherlands
Karma: 0
General (2 Stars)

The sightrange has to be the same or greater than the weapon ammo range.

https://multiplayerforums.com/uploads/monthly_2018_03/TCW2_Signature.png.6236a0dbc6e1e53472a18fe8cd15e47b.png
Re: defense scripts when weapon changes [message #465188 is a reply to message #465172] Sat, 31 March 2012 14:08 Go to previous message
Whitedragon is currently offline  Whitedragon
Messages: 832
Registered: February 2003
Location: California
Karma: 1
Colonel
robbyke wrote on Sat, 31 March 2012 03:53

does it have to be 100% correct?


No, but it will only fire at objects within its SightRange. Some of the multiplayer presets that weren't intended to be bots have a SightRange of 0, so you'll need to change that if you're using them.


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 - )
Previous Topic: storing cash in some sort of bank
Next Topic: Question again
Goto Forum:
  


Current Time: Sat Dec 28 00:52:17 MST 2024

Total time taken to generate the page: 0.00803 seconds