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

Members Online

»
0 Active | 81 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 SP Mapping
CoD 4 mapping and level design for single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: getting weapons
Warr!or
General Member
Since: Jun 21, 2005
Posts: 257
Last: Feb 9, 2008
[view latest posts]
Level 5
Category: CoD4 SP Mapping
Posted: Sunday, Feb. 3, 2008 04:52 pm
Hi,
I would like to know how to get a weapon.

Beacuse when I spawn in the game, I have no weapons.
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD4 SP Mapping
Posted: Sunday, Feb. 3, 2008 04:57 pm
Works the basically the same as in CoD, UO and 2.

level.player giveWeapon( "USP" );
level.player giveWeapon( "mp5_silencer" );
level.player giveMaxAmmo( "mp5_silencer" );
level.player giveWeapon( "fraggrenade" );
level.player giveWeapon( "flash_grenade" );
level.player switchtoWeapon( "mp5_silencer" );
level.player setOffhandSecondaryClass( "flash" );
level.player setViewmodel( "viewhands_black_kit" );
Share |
Warr!or
General Member
Since: Jun 21, 2005
Posts: 257
Last: Feb 9, 2008
[view latest posts]
Level 5
Category: CoD4 SP Mapping
Posted: Sunday, Feb. 3, 2008 06:27 pm
Nope, I still don't get any weapon.

When I open the console, it says it can't load any of them.





edited on Feb. 3, 2008 01:30 pm by Warr!or
Share |
Phillibilli
General Member
Since: Mar 21, 2005
Posts: 1
Last: Feb 5, 2008
[view latest posts]
Level 0
Category: CoD4 SP Mapping
Posted: Tuesday, Feb. 5, 2008 06:39 pm
try this :

Code:
#include maps\_utility;

  main()  
{ 
 maps\_load::main(); 
 level.player giveWeapon ("mp5"); 
 level.player givemaxammo ("mp5"); 
 level.player setViewmodel( "viewhands_black_kit" );
  }
Share |
Warr!or
General Member
Since: Jun 21, 2005
Posts: 257
Last: Feb 9, 2008
[view latest posts]
Level 5
Category: CoD4 SP Mapping
Posted: Tuesday, Feb. 5, 2008 08:54 pm
Thx, but I already fixed the problem.

I just forgot to update my zone file.[banghead]

Thx anyway[thumbs_up]
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 SP 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

»