Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 15 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD4 MP Mapping
CoD 4 mapping and level design for multiplayer.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Custom Weapon
darkpheonixz4x
General Member
Since: Jul 7, 2012
Posts: 17
Last: Nov 7, 2012
[view latest posts]
Level 1
Category: CoD4 MP Mapping
Posted: Wednesday, Nov. 7, 2012 01:23 pm
I wanted to use a custom weapon in my map and i need help.

I downloaded a BlackOps weapon from www.cfgfactory.com
This was a .rar, which included all the rawfiles (xmodel,materials,images,WEAPONFILE etc.)

So this was what i did.

1) Merged the raw files with my raw folder.
2) Since the weapon files were given in the folder WEAPONFILE, i took them and put them in raw/weapons/mp/
3) Added all the given images file into my map's .iwd
4) Updated my .csv (There was a .txt file that had everything that was needed to be added)
5) Finally, i made a trigger use in map with the following script.

CODE: SELECT ALL
main()
{
PreCacheItem("_bo_l96_vz_mp");
thread test1();
}

test1()
{
trig = getent("test1_trig","targetname")
{
trig waittill ("trigger", user);
user GiveWeapon("_bo_l96_vz_mp");
user SwitchToWeapon("_bo_l96_vz_mp");
}
}


My map loaded fine, but the problem was that my weapon swaps to the "default weapon".

So i have some questions.

a) I didn't really follow any tuts, so is my process in using a custom weapon for my map right?
b) What did i do wrong, and how do i fix the error?

If you would like to see anything, please feel free to ask.
Any sort of help is appreciated.

Thanking you in advanced,
darkpheonixz4x.
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 MP Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»