Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Question about the object hook(hooking bullets, etc.)
Question about the object hook(hooking bullets, etc.) [message #273108] Sat, 14 July 2007 02:23 Go to next message
Tunaman
Messages: 1190
Registered: January 2005
Karma: 2
General (1 Star)
Is it possible to be able to attach a script to the bullets of something? I tried doing it through an object hook but then I found out that it didn't catch things such as bullets, etc. Sad

Is there a better(or another) way of getting something's GameObject? Right now I'm just attaching scripts to them in my object hook.


http://img694.imageshack.us/img694/9055/tunamanlmao.png
Re: Question about the object hook(hooking bullets, etc.) [message #273111 is a reply to message #273108] Sat, 14 July 2007 02:59 Go to previous messageGo to next message
Whitedragon is currently offline  Whitedragon
Messages: 832
Registered: February 2003
Location: California
Karma: 1
Colonel
Bullets aren't gameobjects and you can't attach scripts to 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 - )
Re: Question about the object hook(hooking bullets, etc.) [message #273114 is a reply to message #273108] Sat, 14 July 2007 03:17 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Yeah, more's the pity. Sometimes it would be SO useful to have events for both weapon firing and bullet impact (including WHAT it impacted on and x,y,z location of final impact etc).

*sigh*....


http://steamsignature.com/card/1/76561197975867233.png
Re: Question about the object hook(hooking bullets, etc.) [message #273125 is a reply to message #273108] Sat, 14 July 2007 04:35 Go to previous messageGo to next message
Tunaman
Messages: 1190
Registered: January 2005
Karma: 2
General (1 Star)
Oh, thanks. It woulda been useful but oh well.

http://img694.imageshack.us/img694/9055/tunamanlmao.png
Re: Question about the object hook(hooking bullets, etc.) [message #273155 is a reply to message #273108] Sat, 14 July 2007 09:28 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
Bullets are clientside.
Re: Question about the object hook(hooking bullets, etc.) [message #273177 is a reply to message #273108] Sat, 14 July 2007 12:17 Go to previous messageGo to next message
Slave is currently offline  Slave
Messages: 607
Registered: December 2006
Karma: 0
Colonel
Bullets damaging a building ain't clientside.
Re: Question about the object hook(hooking bullets, etc.) [message #273179 is a reply to message #273177] Sat, 14 July 2007 12:22 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
If where bullets land are client side, then how would the server know if the bullet hit the head or arm or leg or whatever?
Re: Question about the object hook(hooking bullets, etc.) [message #273180 is a reply to message #273108] Sat, 14 July 2007 12:25 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
The clients sends it Wink Because big head isn't server side, lol.
You still send info about where you are shooting.
Re: Question about the object hook(hooking bullets, etc.) [message #273185 is a reply to message #273180] Sat, 14 July 2007 13:01 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
RoShamBo wrote on Sat, 14 July 2007 14:25

The clients sends it Wink Because big head isn't server side, lol.
You still send info about where you are shooting.

Then it could be serverside since there is info sent...?
Re: Question about the object hook(hooking bullets, etc.) [message #273186 is a reply to message #273185] Sat, 14 July 2007 13:08 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
BlueThen wrote on Sat, 14 July 2007 21:01

RoShamBo wrote on Sat, 14 July 2007 14:25

The clients sends it Wink Because big head isn't server side, lol.
You still send info about where you are shooting.

Then it could be serverside since there is info sent...?


If it was serverside, big head wouldn't work.
Re: Question about the object hook(hooking bullets, etc.) [message #273188 is a reply to message #273186] Sat, 14 July 2007 13:20 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
RoShamBo wrote on Sat, 14 July 2007 15:08

BlueThen wrote on Sat, 14 July 2007 21:01

RoShamBo wrote on Sat, 14 July 2007 14:25

The clients sends it Wink Because big head isn't server side, lol.
You still send info about where you are shooting.

Then it could be serverside since there is info sent...?


If it was serverside, big head wouldn't work.

but..d. data.. er.. nevermind.

[Updated on: Sat, 14 July 2007 13:21]

Report message to a moderator

Re: Question about the object hook(hooking bullets, etc.) [message #273191 is a reply to message #273108] Sat, 14 July 2007 13:29 Go to previous messageGo to next message
Tunaman
Messages: 1190
Registered: January 2005
Karma: 2
General (1 Star)
What RoShamBo means is that damage against infantry and vehicles is clientside.. I don't really know what he's trying to say about bullets only being clientside though. Because if they were then buildings would be invincible. ;[

http://img694.imageshack.us/img694/9055/tunamanlmao.png

[Updated on: Sat, 14 July 2007 13:30]

Report message to a moderator

Re: Question about the object hook(hooking bullets, etc.) [message #273195 is a reply to message #273108] Sat, 14 July 2007 13:42 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
When someone has a RoF hack, if the bullets were server side, everyone would see it stright away. Instead, they don't because all the clients sends is that you are shooting and in the general direction. All you see if the player shooting like normal. The server will look at the path and if it collides with a building mesh then it does the damage.
Re: Question about the object hook(hooking bullets, etc.) [message #273233 is a reply to message #273108] Sat, 14 July 2007 17:09 Go to previous messageGo to next message
Yrr is currently offline  Yrr
Messages: 556
Registered: October 2006
Location: Germany
Karma: 0
Colonel

No, the client fires, does bullet collisions and then sends the damage to the server.

Re: Question about the object hook(hooking bullets, etc.) [message #273251 is a reply to message #273233] Sat, 14 July 2007 18:27 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
Yrr wrote on Sun, 15 July 2007 01:09

No, the client fires, does bullet collisions and then sends the damage to the server.


Even to buildings? ;o Thats what i was talking about.

[Updated on: Sat, 14 July 2007 18:27]

Report message to a moderator

Re: Question about the object hook(hooking bullets, etc.) [message #273325 is a reply to message #273108] Sun, 15 July 2007 05:03 Go to previous message
Yrr is currently offline  Yrr
Messages: 556
Registered: October 2006
Location: Germany
Karma: 0
Colonel

No, not for buildings. If you turn LagReduction off in your configuration, the server does all bullet collisions.

Previous Topic: Question:Specific ammo refilling?
Next Topic: Make A Command
Goto Forum:
  


Current Time: Sun Dec 22 00:17:09 MST 2024

Total time taken to generate the page: 0.01079 seconds