I have a model replacing the thompson that requires more tags than the thompson .weap includes. My question is to add more tags is it just a matter of making EXAMPLE: part 3,part 4 etc?
or does it require hardcode? if so how may I do this???
I have a model replacing the thompson that requires more tags than the thompson .weap includes. My question is to add more tags is it just a matter of making EXAMPLE: part 3,part 4 etc?
or does it require hardcode? if so how may I do this???
No hardcode necessary. Max parts is 7 though, so just keep it under that if you can and you should be fine.
So, just make your main model with the tags like you did, then from there make all the part attachments as well in separate files like normal, and then just create the weaponDef and name the part links at the bottom like normal, just use more is all.
Good luck!
thanks
another question where would I look into changing the reload animation time, the animation we are using lasts longer than that of the thompson
I read in a post by No1_sonuk that running times for the animations are in the code but he does not state where
If you want more than 7 tags in your model (forgot to mention above) then you just can take a look at the barrelType_t in cg_local.h. Just add more numbers into the enum. But yes, if you keep it under 7 parts then all you need is to simply add the tags in the models, and state in the weapon cfg.
=============
Reload animation time should be in the ammotable in bg_misc.c. I’m not going to list the whole table because it’s huge, but just search for the ammotable_t ammoTableMP arrary declaration and initializer, as shown below.
// Separate table for SP and MP allow us to make the ammo and med packs function differently and may allow use to balance
// weapons separately for each game.
// Gordon: changed to actually use the maxammo values
ammotable_t ammoTableMP[WP_NUM_WEAPONS] = {
thanks again for the help
Im planning on replacing the thompson completely with a PPSh, can I simply do a quick search and replace
Search for- WP_THOMPSON
Replace with- WP_PPSH
and
Search for- MOD_THOMPSON
Replace with- MOD_PPSH
am I missing anything?
thanks 
Umm… ya you will miss one or two string literals (just strings) if you only search for those. Just search for “Thompson” without the MOD_ or WP_ in front to make sure you get all the strings as well. Other than that, It will work perfect. I think there is less than a handful of strings anyhow, so you will get 99percent of what you want with the WP_ and MOD_ replacements.
SHould have mentioned this before (only reason it’s a new post not an edit i to make sure you see the example). ANyways, here’s an example of what I mean by strings that need to be changed, in cg_event.c in the CG_Obituary function:
case MOD_THOMPSON:
message = "was killed by";
message2 = "'s Thompson";
break;
You will be able to replace the MOD_THOMPSON part, but unless you look carefully you will miss the
message2 = "'s Thompson";
Would simply searching for and replacing THOMPSON (no case restriction) satisfy everything???
Yes.
After that is done, just wake sure to create the weapons/newweapon.weap file as necessary and you are done.