Shotgun Impacts aren't showing up

Locked
Kaz
Posts: 1077
Joined: Wed Mar 08, 2006 3:43 am

Shotgun Impacts aren't showing up

Post 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 :)
Silicone_Milk
Posts: 2237
Joined: Sat Mar 12, 2005 10:49 pm

Re: Shotgun Impacts aren't showing up

Post by Silicone_Milk »

I cant get it to compile :(
corncobman
Posts: 304
Joined: Fri Aug 08, 2003 7:00 am

Re: Shotgun Impacts aren't showing up

Post 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.
-It is not the fall that kills you. It's the sudden stop at the end. (Douglas Adams)-

[url=http://www.violationentertainment.com/misc/ccm]-An eyeful a day is bloody fantastic!-[/url]
Kaz
Posts: 1077
Joined: Wed Mar 08, 2006 3:43 am

Re: Shotgun Impacts aren't showing up

Post by Kaz »

It's for a standalone I'm working on, PM me for a version if you're wanting to test changes.
corncobman
Posts: 304
Joined: Fri Aug 08, 2003 7:00 am

Re: Shotgun Impacts aren't showing up

Post 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_)
-It is not the fall that kills you. It's the sudden stop at the end. (Douglas Adams)-

[url=http://www.violationentertainment.com/misc/ccm]-An eyeful a day is bloody fantastic!-[/url]
Kaz
Posts: 1077
Joined: Wed Mar 08, 2006 3:43 am

Re: Shotgun Impacts aren't showing up

Post 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
Locked