PDA

View Full Version : Weapons only firing once


Voodoo_180
10th Mar 2002, 12:04 PM
I am making weapons for two mods at the moment, I can make them fine (the models) animate, import, texture and everything fine, but there is one problem, they only fire once. The animation names are right, but you can fire once (it plays the anim fine) but then you cant fire again until you drop it ( ; ) and pick it up, and so on.

Below is the entire uc file if needed:

class pred expands ut_flakcannon;

#exec MESH IMPORT MESH=pred ANIVFILE=MODELS\pred_a.3d DATAFILE=MODELS\pred_d.3d X=0 Y=0 Z=0
#exec MESH ORIGIN MESH=pred X=768 Y=-1280 Z=256 yaw=-64 pitch=0 roll=0

#exec MESH SEQUENCE MESH=pred SEQ=All STARTFRAME=0 NUMFRAMES=5
#exec MESH SEQUENCE MESH=pred SEQ=fire STARTFRAME=0 NUMFRAMES=5
#exec MESH SEQUENCE MESH=pred SEQ=altfire STARTFRAME=5 NUMFRAMES=12 rate=0.8

#exec MESHMAP NEW MESHMAP=pred MESH=pred
#exec MESHMAP SCALE MESHMAP=pred X=0.0125 Y=0.0125 Z=0.025

#exec TEXTURE IMPORT NAME=material01 FILE=texture1.pcx GROUP=Skins FLAGS=2
#exec TEXTURE IMPORT NAME=material01 FILE=texture1.pcx GROUP=Skins PALETTE=material01
#exec MESHMAP SETTEXTURE MESHMAP=pred NUM=1 TEXTURE=material01

#exec TEXTURE IMPORT NAME=material01 FILE=texture2.pcx GROUP=Skins FLAGS=2
#exec TEXTURE IMPORT NAME=material01 FILE=texture2.pcx GROUP=Skins PALETTE=material01
#exec MESHMAP SETTEXTURE MESHMAP=pred NUM=2 TEXTURE=material01

#exec TEXTURE IMPORT NAME=material01 FILE=texture3.pcx GROUP=Skins FLAGS=2
#exec TEXTURE IMPORT NAME=material01 FILE=texture3.pcx GROUP=Skins PALETTE=material01
#exec MESHMAP SETTEXTURE MESHMAP=pred NUM=3 TEXTURE=material01

#exec TEXTURE IMPORT NAME=material01 FILE=texture4.pcx GROUP=Skins FLAGS=2
#exec TEXTURE IMPORT NAME=material01 FILE=texture4.pcx GROUP=Skins PALETTE=material01
#exec MESHMAP SETTEXTURE MESHMAP=pred NUM=4 TEXTURE=material01

defaultproperties
{
DrawType=DT_Mesh
Mesh=pred

InventoryGroup=2
PickupMessage="You picked up the Ares Predator!"
ItemName="Ares Predator"

playerviewmesh=lodmesh'pred.pred'
PickupViewMesh=LodMesh'pred.pred'
ThirdPersonMesh=LodMesh'pred.pred'

}

Yes I know the textures aren't done but thats not a problem at the moment, I am awaiting them and it still works without the textures.


600th post!!! YAY!!!!