Page 1 of 1

Shotgun Impacts aren't showing up

Posted: Thu Jan 24, 2008 9:59 pm
by Kaz
I've been stuck with this problem for some time now, and I've gone through and tried doing just about whatever reverting, debugging, whathaveyou I can think of and it's still messed up.

The shotgun bullet impacts simply don't show up. I don't remember during which compile they disappeared but they did and it was random as hell. I've traced each function from firing to the pellet code to the impact marks and all of them are executing. I looked at where the media is defined, and it uses the same exact media that the pistol and machinegun use, which do work perfectly fine. I turned on r_showtris 1, and they aren't even being stuck on the surface they impact. It actually does damage to a player however, so I assume the collision is working properly.

You can grab the full game/cgame/ui source here, and I'm more than willing to post any functions you would like to look at specifically.

Hopefully someone can help out :)

Re: Shotgun Impacts aren't showing up

Posted: Thu Jan 24, 2008 11:06 pm
by Silicone_Milk
I cant get it to compile :(

Re: Shotgun Impacts aren't showing up

Posted: Sun Jan 27, 2008 5:19 pm
by corncobman
After fixing a few minor things, I compiled the code and tried running in Quake 3 and a lot of media is missing.

Re: Shotgun Impacts aren't showing up

Posted: Sun Jan 27, 2008 5:52 pm
by Kaz
It's for a standalone I'm working on, PM me for a version if you're wanting to test changes.

Re: Shotgun Impacts aren't showing up

Posted: Sun Jan 27, 2008 9:12 pm
by corncobman
I believe your direction vectors are getting screwed up somehow, because when I tested it, no matter what direction I aimed at, the shotgun effects were always in the same spot.

EDIT: I noticed you added some stuff to the playerstate struct and entitystate structs in q_shared.h. It's not a good idea to do this as as the each member is transmitted individually and the client and engine expects them in the right order. This could cause a few problems.

I suggest taking the new stuff out and putting them into stat or persistant variables (in bg_public.h, look for STAT_ or PERS_)

Re: Shotgun Impacts aren't showing up

Posted: Thu Mar 20, 2008 3:46 pm
by Kaz
Yeah, removing my changes to the entitystate struct fixed the shotgun impacts. I was having another issue where the ammo wouldn't update properly, that ended up being a small change in msg.c...

just in case people run into similar issues