When I stickybomb somebodies face and he gets into a vehicle afterward, make the whole vehicle go boom (no matter what hull/armor it has left since the bomb is INSIDE), or at least the guy die rather then the sticky dissappear and nothing happening.
(not knowing how shity this section of the code is) I don't see why that would be alot of code... right now it seems like the death timer and artifacts are wiped from the player apon entering a vehicle... why not just re-assign the sticky timer to the tank?
are you sure that isn't working already? I think as long as you sticky yourself you do kill the vehicle you enter, not so sure about enemies with stickied faces though.
I have sticked people before when they were getting back in there tank and they don't die... I know I hit them because the sticky never blows up.
That's not how stickies work. The sticky parents to the first entity it hits (think welded) It then explodes after a brief delay like any other grenade. When you enter a vehicle your player entity gets temporarily removed from the game. The sticky is deleted because when a parent is deleted, all children are deleted (IE, player is parent of sticky, player removed, sticky removed) To make this occur as you want it, you'd have to run a check of all the entities parented to the player when they enter a vehicle, check if there's a sticky, save it's timer, do a bunch of other shit and then kill the player. Which is a huge amount of work for a situation that is so rare it doesnt matter. If you see a guy next to a tank repairing, shoot him.
I understand the checking entities part and the saving timer part but, what is this... "do a bunch of other shit" part? Other then that it seems trivial... although as I said... I don't know how many loops are needed to jump through just to do that.
Well, the stickybomb would either have to attach itself to the vehicle and kill it, or once the timer runs out, it would eject the player from the vehicle and then kill him. Of course, this is all after what Empty already stated. The former one would have to check which vehicle the player entered, attach itself to the vehicle, load the timer from the previous state and do a modified amount of damage to the vehicle to the vehicle by checking if the stickybomb attached itself to the vehicle because it was thrown at it normally or because a sticky'd player entered the vehicle. The latter would have to load the timer from the previous state, wait for the timer to go off, then forcibly eject the player from the vehicle and kill him as usual. The former one is obviously complicated. The latter one may seem easier, but it's quite possible that it's hard to do. I wouldn't know, and I wouldn't assume because I am not a coder.
So, how come a sticky to myself can kill my vehicle? Since I can only guess around client/server stuff, I don't guess.
That "niche" happens a more lot often then you think, drivers often get out of the vehicle, see me having nade out, think "OH SHIT GOTTA GET IN" but got stickied by me in meantime. The bug gets (unkowingly) exploited much too often. Also, even if it wouldnt happen often, it would make for a more awesome kill then calckill. It just doesn't happen to you empty, cause you dont have the balls to run up to enemy vehicles with nothing but a grenade out like a boss shouting JERONIMOOOOOOOOOOOOOOOOO.
Would it be easier to make it so that when a player has a sticky grenade attached, they can't enter a vehicle?