coding: quad stuff and a question

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
ensiform
Posts: 93
Joined: Mon Jul 25, 2005 5:20 am

coding: quad stuff and a question

Post by ensiform »

Here are the neat team colored quad shader around the rocket/grenade/prox missiles:
Red Grenade:
http://img32.imageshack.us/img32/2475/shot00000mf.jpg
Red Rocket:
http://img32.imageshack.us/img32/2861/shot00033ya.jpg
Red Proximity Mine:
http://img32.imageshack.us/img32/5466/shot00017yh.jpg
Blue Grenade:
http://img346.imageshack.us/img346/6893/shot00047eb.jpg
Blue Rocket
http://img346.imageshack.us/img346/5259/shot00056rf.jpg
Blue Proximity Mine:
http://img346.imageshack.us/img346/2055/shot00070wl.jpg

Okay so those are the missiles themselves.. but im also trying to get a sphere model to be the explosion if u have quad...

heres what i got so far:

Code: Select all

          if (cg.snap->ps.powerups[PW_QUAD]) {
               if (cg.predictedPlayerState.persistant[PERS_TEAM] == TEAM_RED) {
                    mod = cgs.media.redSphereModel;
                    //shader = cgs.media.redQuadShader;
                    sfx = cgs.media.sfx_rockexp;
                    mark = cgs.media.burnMarkShader;
                    radius = 64;
                    light = 300;
                    isSprite = qtrue;
               } else {
                    mod = cgs.media.blueSphereModel;
                    //shader = cgs.media.quadShader;
                    sfx = cgs.media.sfx_rockexp;
                    mark = cgs.media.burnMarkShader;
                    radius = 64;
                    light = 300;
                    isSprite = qtrue;
               }
          } else {
           ... regular explosion ...
     }
the problem is that, the thing just shows as the missing texture checkerboard... any help please?

Note: also posted at pqforums.

oh, btw im the old tek9id user from here. first post :icon14:
o'dium
Posts: 11712
Joined: Sun Mar 25, 2001 8:00 am

Post by o'dium »

Dude, I think the best choice would be for different skins for the rocket, because quad shells on flames don't look good at all :p They also look cheap.

However, the error is obviously a path error. The easiest way to see where you went wrong is to pull down the console and page up until you find something like ERROR: Blah blah blah and then check what it says there. Sounds like your shader is wrong, typo maybe.
ensiform
Posts: 93
Joined: Mon Jul 25, 2005 5:20 am

Post by ensiform »

not very noticeable on the rocket model and id rather not change the skins, i think the quad around missiles looks cooler, and i figured that i need to make isSprite qfalse. for the sphere to show up.

no it was not wrong, the models loaded in a test map.
Post Reply