Posts: 1,496
Threads: 78
Joined: Jun 2008
Reputation:
0
18.09.2011, 05:30
(
Последний раз редактировалось leong124; 20.09.2011 в 16:38.
)
Today one of my friends finds that if you attach some objects which is explosive like the LPG tank on yourself with SetPlayerAttachedObject, it will disappears if you throw some grenades on the player it is attached and the grenades explode.
Posts: 1,496
Threads: 78
Joined: Jun 2008
Reputation:
0
I only tested that in my friends' server but not mine, so I don't know about that.
I'll test it again on my server.
Posts: 1,496
Threads: 78
Joined: Jun 2008
Reputation:
0
Confirmed. I hold a petrol drum (ID 1370) and I throw a grenade near me.
I haven't die because I set my health to a very high value, but the drum disappears with some flames created.
Posts: 316
Threads: 0
Joined: Sep 2011
Reputation:
0
who is always deleting my posts?!? -.-
i posted one question here and it deleted....
if u go away and u come back the object is back? or it really "went"?
Posts: 1,496
Threads: 78
Joined: Jun 2008
Reputation:
0
Never mind. For those attached objects which will disappear should be those explosive objects IMO.
Anyway there's another LPG drum which is basically the same model but it will not disappear. I'll change the model to this.
Posts: 399
Threads: 23
Joined: Mar 2011
Reputation:
0
Read my post again CAREFULLY ...
Posts: 1,496
Threads: 78
Joined: Jun 2008
Reputation:
0
I'm sure it is not, as it only disappears when the grenade explode (which is not the moment when I press the fire key). Also, it create some fire when it disappears, which will not be created by the grenade and RemovePlayerAttachedObject.
I've checked my code and I don't have such code you mentioned. The most likely thing will be the aim key, which is a workaround for snipers seeing the attached objects, to temporarily remove all the objects the player have, and it will be attached again when the player releases the aim key.
Obviously it is not the cause, since only the drum disappears but not all the attached objects on the body, and the drum will not appear again. Also, it should be impossible for the server to recognise the fire key as the aim key.
Posts: 37
Threads: 8
Joined: Sep 2009
It's not bug, it was destroyed by explosion.
Posts: 1,988
Threads: 17
Joined: Apr 2011
Reputation:
0
That blue LPG thinghy is explodable.
Posts: 1,496
Threads: 78
Joined: Jun 2008
Reputation:
0
Don't you think that you can remove attached objects without using RemovePlayerAttachedObject is weird?