Sign in to follow this  
Followers 0
Jumpy

Importing custom weapons to my dr map?

28 posts in this topic

I recently decided to add a custom model (Duke Nukem) to my map and it works with no problem.

This is what I did:

1. When I downloaded the duke nukem, I took all the folders (material, xmodel etc.) and pasted them in my raw folder.

2. I copied all the IWI files from the images folder and pasted in my IWD/images folder

3. When I updated the zone file, I added this:

material,mtl_plr_dnf_duke_body
material,mtl_plr_dnf_duke_glasses
material,mtl_plr_dnf_duke_glasses_lens
material,mtl_plr_dnf_duke_hand
material,mtl_plr_dnf_duke_head
xmodel,viewhands_dnf_duke
xmodel,playermodel_dnf_duke

4. In the GSC I have this code:

user endon("disconnect");
user detachAll();
user setModel("playermodel_dnf_duke");
user iprintLnBold("^5You ^7are ^3Duke Nukem now!");

P.S I have it in my mini RTD script.

 

and this:

 precacheShader("mtl_plr_dnf_duke_body");
 precacheShader("mtl_plr_dnf_duke_glasses");
 precacheShader("mtl_plr_dnf_duke_glasses_lens");
 precacheShader("mtl_plr_dnf_duke_hand");
 precacheShader("mtl_plr_dnf_duke_head");
 precacheModel("playermodel_dnf_duke");

How do I add custom weapons from CFG factory?

I did the same process but it didn't work.

 

0

Share this post


Link to post
Share on other sites

Pretty sure it's the not same thing for weapons and characters, also pretty sure there are loads of tutorials online specifically for adding custom weapons

0

Share this post


Link to post
Share on other sites

Question, why are you precaching "shaders" if you aren't even using them for "shaders"?

0

Share this post


Link to post
Share on other sites

Pretty sure it's the not same thing for weapons and characters, also pretty sure there are loads of tutorials online specifically for adding custom weapons

So your're basically saying:

Fuck off and find out for yourself you noob faggit...

-4

Share this post


Link to post
Share on other sites

Question, why are you precaching "shaders" if you aren't even using them for "shaders"?

Idk, I followed a tutorial... There are a lot of things I don't know in scripting

0

Share this post


Link to post
Share on other sites

Pretty sure it's the not same thing for weapons and characters, also pretty sure there are loads of tutorials online specifically for adding custom weapons

Can you atleast point out to a GOOD tutorial that shows how to do that? I've watched hundreds of them but they're either for charachters or modding...

0

Share this post


Link to post
Share on other sites

Adding a weapon to a mod is the same with mapping only difference is you don't add it to the mods csv but instead the map csv file.

0

Share this post


Link to post
Share on other sites

Adding a weapon to a mod is the same with mapping only difference is you don't add it to the mods csv but instead the map csv file.

So I do it like this:

1. Paste all the folders in the raw folder

2. Put the IWI files from the images file to my IWD/images folder

3. And I add this:

material,mtl_plr_dnf_duke_body
material,mtl_plr_dnf_duke_glasses
material,mtl_plr_dnf_duke_glasses_lens
material,mtl_plr_dnf_duke_hand
material,mtl_plr_dnf_duke_head
xmodel,viewhands_dnf_duke
xmodel,playermodel_dnf_duke

to my maps csv?

0

Share this post


Link to post
Share on other sites

Yes then precache the weapon as well.

0

Share this post


Link to post
Share on other sites

Yes then precache the weapon as well

I doesn't work...

So I copied these folders:

images

material_properties

materials

sound

xanim

xmodel

xmodelparts

xmodelsurfs

 

in py raw folder. Then I copied three IWI files from the images folder from the downloaded weapon and pasted in my IWD. I opened my mp_dr_wealth.csv and added this:

sound,bo2_m1911,,all_mp
material,bo2_mtl_t6_wpn_pistol_m1911
xmodel,bo2_t6_wpn_pistol_m1911_view
xmodel,bo2_t6_wpn_pistol_m1911_world
xanim,ndr_m1911_idle
xanim,ndr_m1911_fire
xanim,ndr_m1911_fire_ads
xanim,ndr_m1911_ads_up
xanim,ndr_m1911_ads_down
xanim,ndr_m1911_reload
xanim,ndr_m1911_reload_empty
xanim,ndr_m1911_pullout
xanim,ndr_m1911_putaway
xanim,ndr_m1911_sprint_in
xanim,ndr_m1911_sprint_out
xanim,ndr_m1911_sprint_loop
xanim,ndr_m1911_first_raise

and i precached:

 PreCacheItem("m1911_mp");
 PreCacheItem("mtl_t6_wpn_pistol_m1911");
 PreCacheItem("colt45_mp");

P.S it's the m1911 from bo2

0

Share this post


Link to post
Share on other sites

would be nice if you told us what happens when you try to use the weapon

0

Share this post


Link to post
Share on other sites

would be nice if you told us what happens when you try to use the weapon

Heres my gsc script btw:

bo1()
{
 trig = getEnt("bo1_trig","targetname");
 
 for(;;)
 {
  trig waittill("trigger", user);
  user TakeAllWeapons();
  user GiveWeapon("m1911_mp");
  user switchToWeapon("m1911_mp");
	 
 } 
}

nithing happens. If i write /give m1911_mp i would get nothing, or if i wrote /give colt45_mp i would get the default colt

0

Share this post


Link to post
Share on other sites

Heres my gsc script btw:

bo1()
{
 trig = getEnt("bo1_trig","targetname");
 
 for(;;)
 {
  trig waittill("trigger", user);
  user TakeAllWeapons();
  user GiveWeapon("m1911_mp");
  user switchToWeapon("m1911_mp");
	 
 } 
}

nithing happens. If i write /give m1911_mp i would get nothing, or if i wrote /give colt45_mp i would get the default colt

 

m1911_mp isn't a valid weapon, I'm sure you meant beretta_mp. Also, you don't need to precache standard pistols if you're making that map for deathrun. You're not getting any gun, because your weaponfile isn't in your mapname.iwd > "weapons" folder.

0

Share this post


Link to post
Share on other sites

m1911_mp isn't a valid weapon, I'm sure you meant beretta_mp. Also, you don't need to precache standard pistols if you're making that map for deathrun. You're not getting any gun, because your weaponfile isn't in your mapname.iwd > "weapons" folder.

So what should I do? Rename the weapon file to seomthing else and have it in my iwd?

0

Share this post


Link to post
Share on other sites

ya, I'd suggest you to rename it to beretta_mp if you want it to replace the m9

0

Share this post


Link to post
Share on other sites

ya, I'd suggest you to rename it to beretta_mp if you want it to replace the m9

IDK it's not working.

0

Share this post


Link to post
Share on other sites

So your're basically saying:

Fuck off and find out for yourself you noob faggit...

Because that's exactly what I said (y), sarcasm of course.

 

Though if that is what you assumed from it then why not try it instead of putting minimal effort and just asking others to put their own effort to help you?

 

There are tutorials that explain it, and it works. Source: I did it myself a while back.

 

Also could you possibly have responded in a more immature way? If I was reluctant to spoon feed you information before I am definitely not going to now.

 

It's the people like you in the cod4 community that make me want to leave even more.

 

Good day. 

0

Share this post


Link to post
Share on other sites

I really don't understand why you are so pissed, and please, don't say you aren't. I know I can be a bit annoying with my questions but everyone says that raid is the best place to ask for help. If I were you and you were me I would gladly help, even though you're annoying.

I am sorry but I am kind of offended by your ways of helping because if you hate me so much, no one even asked you to answer...

Your're the only one who is kind of HARSH on me... I don't know whats wronging you Sentrex... I'm just trying to fit in...

Bad day

0

Share this post


Link to post
Share on other sites

I really don't understand why you are so p*****, and please, don't say you aren't. I know I can be a bit annoying with my questions but everyone says that raid is the best place to ask for help. If I were you and you were me I would gladly help, even though you're annoying.

I am sorry but I am kind of offended by your ways of helping because if you hate me so much, no one even asked you to answer...

Your're the only one who is kind of HARSH on me... I don't know whats wronging you Sentrex... I'm just trying to fit in...

Bad day

He isn't upset with you, it's other factors which are occurring that's causing it

As with most communities and places to ask for help, some bad apples when it comes to responses are to be expected

Will agree that you should try and find it yourself first before attempts of asking are made

In addition, Sentrex doesn't hate you nor anything of the sort.

More so with the situation and factors mentioned prior

Regarding you trying to fit in, you already have

By being on raid means you're a part of the community and thus, far from what I've seen, you're a positive member and trying to learn

0

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  
Followers 0