mg42 bugs


(Demolama) #1

I found 2 bugs in the mounted mg42

1 the tank mounted mg tracers dont line up with the gun… only when you draw gun will it line up

  1. stationary mg42’s dont break breakables … so if a player hides behind a window he’s safe

Ive looked at both mg42_fire and mountedmg42_fire and messed around with the functions… I also looked at other functions like Fire_Lead_ext and even messing around with the variables and other things there as well … the end result is I still havent found either these 2 bugs

they are obviously etmain bugs because I can reproduce them in etmain… I was just wondering if anyone figured these bugs out? if youd did could you point me to the function or functions so that I can be on the right track to fixing these 2 bugs?


(Loffy) #2

Hi
I knew that MGs on tripods cannot break destroyables (e.g. brushes that have windows textures on them and that are func_explosives). I’ve tried that, as I ran around in my maps while testing. But does that mean that a player, in a game on a server, is safe behind that window? Im not sure. Those Mgs are leathal! Rrrrrrrrrrrrr “argh!”.
//Loffy


(zinx) #3

The second bug has been fixed in ET Pro; i don’t understand what you mean for the first, though.

The fix for the second was to give the proper team when damaging via map objects;
add the following to src/game/g_utils.c, at the end of the switch in G_GetTeamFromEntity:


case ET_MG42_BARREL: // zinx - fix for #470
        return G_GetTeamFromEntity( &g_entities[ent->r.ownerNum] );


(Demolama) #4

oh nice…thank you… I should have known it was a simple fix but I was just looking at the wrong place

what I mean by the first one is if you have cg_drawgun 0 and on the mounted tank the tracers will fire from your last position that cg_drawgun was on.

for example fuel dump: you hop on the tank at the beginning and have the gun turned off… when firing you’ll see the tracers come from behind you and whats worse is that you can hear metal sounds of the tracers hitting the tank from behind… really weird… but as soon as your cg_drawgun 1 its back on the front of the mg42 again


(Jaquboss) #5

since i am not supporting cg_drawgun i dont mind that , I have rather to fix cheat protection , because it dont protect option in ui menus…