Weapons


(Higgins) #1

I want to change the weapon bullet graphics and the ammo amount. I cant find any thing in the weapon files about the ammo or rate of fire. I couldnt find the images for the bullet trail or what ever it is that you see when you fire.

Can any one help me out?


(P4nth3r) #2

The ammo amount is set in the source code (bg_misc.c I believe)
The bullets trail , it’s in Pak0.pk3 (look harder)

Greetz Panther


(Higgins) #3

Ive found them now. But, the image ive replaced for the bullet trail, isnt the size i want it to be. How do i increase the size, without making the sparks any biger. Iam trying to make a plasma gun, like from doom 3.


(nUllSkillZ) #4

Where is the original located in “pak0.pk3”?
And do you have a picture of the replacement?

Suggestion example:
ET original is 128 * 128
Replacement is 64*64

Just scale the texture in the direction of the trail as needed (or add two original trail textures together - mirror it to get it seamless).
Resulting in 12864 (or 64128).
Then create a new texture with 128*128.
Copy the scaled replacement and paste it in the center of the new created one.

Then you will only have to add an alpha channel if needed.


(Jaquboss) #5

then use missiles
well, maybe i will sound weird but do it like this:
copy most panzerfaust code and make it faster weaker and so on…


(Higgins) #6

This is the image I have replaced.

http://www.boomspeed.com/dungeon/bullettrail.tga


(Meyerinchains) #7

gfx/misc/tracer2.jpg

that is the bullet tracer (the yellow/orange line when you shoot)

Edit it at will, but make sure when you save it that your filesize is really tiny, (my guess is less than 1kb), otherwise the game won’t start and give you errors.


(Jaquboss) #8

that’s not correct. it is a bug with some jpg formats it writes that “requested feature was omitted at compile time” or something like that
you can use tga instead if you get it, or pcx/bmp
as i said replace whole code because tracers are done after impact, not before :S


(Meyerinchains) #9

You sure? Cause I changed its color and saved it out of photoshop as 100 quality. It made it about 6 KB. Then I got that error. Then I went back and saved it as 80 quality and it was 2.5 KB, still didn’t work and gave me that error. Then I saved it to 60 quality and it became 478 bytes. Then it worked. Same JPEG format/exporter, saved to different file sizes…


(Jaquboss) #10

i have 11kb one working…


(nUllSkillZ) #11

Have you tried to use the texture as it is?
Only renamed to “tracer2.tga”?


(Shanks) #12

You could just open up the Quake3 game code and base your plasma gun off of that…


(Meyerinchains) #13

Haha, ok. Then everyone ignore what I said. Not sure why it did that to me.


(Jaquboss) #14

Ok, let’s give you an usable advice…
instead bullet_fire(); in g_weapons copy fire_rocket ( or how is it ) and change missile speed , mod , and damage…
then just fill in some needed info in weapon file ( missile skin/model/sound ) and change ammo in bg_misc.c
ask for questions…
I am also thinking about finishing my PoP weapons scripting for community ( allowing creating custom weapons by adding new weap files )
however i don’t want to do anything that will not be used… and since PoP is no longer ET i doubt it will be … ( do you really think that ETPro teams want that? no they don’t and without support from majority i have no idea ) if you really want it , just post here…


(MADDOG) #15

Yea, Jaquboss I would love to see and use the weap scripts and maybe the player animations if you can get yuor hands on them?(heard they where very enhanced from Schaffer)


(Jaquboss) #16

If i will do anything like this i will add ALL important to SDK such as :
ammuntion management, damage, spread, altweapon, animation usage instead coded lenghts ( maybe that it is the thing that Shaffer was talking about )
allowing vertex animated first person models ( tags sucks for hands animation, you cant do moving fingers with that )
akimbo option, rate of fire ( including fast fire hack ), fire code ( choose between bullet weapon , grenade, missile, flamethrower, special* ), and maybe even more
the only question is if it’s needed …
*medicpacks, pliers, ammo…