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

Members Online

»
0 Active | 64 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
Page
Next Page
subscribe
Author Topic: Weapon Clip models wont load
SPi
General Member
Since: Jul 4, 2012
Posts: 531
Last: Nov 9, 2019
[view latest posts]
Level 6
Category: CoD4 SP Mapping
Posted: Friday, Jun. 20, 2014 05:07 pm
attachment: image(35.5Kb)
I have a problem with weapon clip models.

In tuts and in stock maps scripts the weapons clip models are like this... (From ambush.gsc)
Code:
level.weaponClipModels = [];
	level.weaponClipModels[0] = "weapon_m16_clip";
	level.weaponClipModels[1] = "weapon_mp5_clip";
	level.weaponClipModels[2] = "weapon_ak74u_clip";
	level.weaponClipModels[3] = "weapon_ak47_clip";
	level.weaponClipModels[4] = "weapon_dragunov_clip";
	level.weaponClipModels[5] = "weapon_g36_clip";
	level.weaponClipModels[6] = "weapon_saw_clip";
	level.weaponClipModels[7] = "weapon_g3_clip";


These are before maps/_load::main();
and i did put mine before maps load main...
mine look like this...
Code:
	level.weaponClipModels = [];
	level.weaponClipModels[0] = "weapon_m16_clip";
	level.weaponClipModels[1] = "weapon_mp5_clip";
	level.weaponClipModels[2] = "weapon_ak47_clip";
	level.weaponClipModels[3] = "weapon_m14_clip";
	level.weaponClipModels[4] = "weapon_dragunov_clip";
	level.weaponClipModels[5] = "weapon_mp44_clip";
	level.weaponClipModels[6] = "weapon_mini_uzi_clip";


and i get an error....
(see attachment image)
Share |
SPi
General Member
Since: Jul 4, 2012
Posts: 531
Last: Nov 9, 2019
[view latest posts]
Level 6
Category: CoD4 SP Mapping
Posted: Sunday, Jun. 22, 2014 03:21 pm
WTF guys is this forum dead?
Share |
Ni3ls
General Member
Since: Nov 7, 2008
Posts: 256
Last: Sep 9, 2017
[view latest posts]
Level 5
Category: CoD4 SP Mapping
Posted: Monday, Jun. 23, 2014 01:43 pm
Show the rest of your code, because it says its undefined
Share |
SPi
General Member
Since: Jul 4, 2012
Posts: 531
Last: Nov 9, 2019
[view latest posts]
Level 6
Category: CoD4 SP Mapping
Posted: Monday, Jun. 23, 2014 05:12 pm
here, i skipped some preache stuff that had nothing to do with this...

Code:
#include maps\_utility;

#include maps\_anim;

#include common_scripts\utility;

#include maps\jake_tools;

#include maps\_vehicle;



#using_animtree("generic_human");

main()
{


	precachestring( &"SPI_DEMO2_BREACH" );		
	precacheString(&"SPI_DEMO2_INTROSCREEN_LINE_1");
	precacheString(&"SPI_DEMO2_INTROSCREEN_LINE_2");
	precacheString(&"SPI_DEMO2_INTROSCREEN_LINE_3");
	precacheString(&"SPI_DEMO2_INTROSCREEN_LINE_4");
	precacheString(&"SPI_DEMO2_INTROSCREEN_LINE_5");
	precachestring( &"SPI_DEMO2_OBJ_1" );

	level.weaponClipModels = [];
	level.weaponClipModels[0] = "weapon_m16_clip";
	level.weaponClipModels[1] = "weapon_mp5_clip";
	level.weaponClipModels[2] = "weapon_ak47_clip";
	level.weaponClipModels[3] = "weapon_m14_clip";
	level.weaponClipModels[4] = "weapon_dragunov_clip";
	level.weaponClipModels[5] = "weapon_mp44_clip";
	level.weaponClipModels[6] = "weapon_mini_uzi_clip";



	maps\spi_demo2_fx::main();	
	maps\_load::main();
	maps\spi_demo2_anim::main();
		
	level.player freezecontrols( true );
	level.player disableweapons();
	level.player.ignoreme = true;
	
	//AmbientPlay( "cricket" );
	battlechatter_off( "allies" );
	battlechatter_off( "axis" );
	
	//threads	
	thread introscreen();
}
Share |
StrYdeR
General Member
Since: May 11, 2004
Posts: 11671
Last: Oct 7, 2021
[view latest posts]
Level 10
Admin
Forum Moderator
Im a HOST of MODSonair
Category: CoD4 SP Mapping
Posted: Wednesday, Jun. 25, 2014 01:29 am
i am not going to reinstall this old game to check - but i would suggest checking that each weapon that you are specifying is correctly spelled and available in sp

[angryalien]
Share |
SPi
General Member
Since: Jul 4, 2012
Posts: 531
Last: Nov 9, 2019
[view latest posts]
Level 6
Category: CoD4 SP Mapping
Posted: Wednesday, Jun. 25, 2014 11:51 am
Thanks, i would suggest that you check my work.
The Second Demo of My great project is almost out,
all trailers and Videos can be found here.
https://www.youtube.com/channel/UC9gZU1yYJ7JbWW8Bf-xXY4g
Looks like I work as a Mapper and as a Video Editor the same time :P
Share |
Ni3ls
General Member
Since: Nov 7, 2008
Posts: 256
Last: Sep 9, 2017
[view latest posts]
Level 5
Category: CoD4 SP Mapping
Posted: Friday, Jun. 27, 2014 07:58 am
Post the whole script. Error is on line 256 and this script doesnt have 256 lines
Share |
SPi
General Member
Since: Jul 4, 2012
Posts: 531
Last: Nov 9, 2019
[view latest posts]
Level 6
Category: CoD4 SP Mapping
Posted: Friday, Jun. 27, 2014 01:13 pm
uh no i believe thats not a line from my script.
If u noticed the error it says (animscripts/weaponlist.gsc , line 256)
not my map gsc.
So the error is not from my script.
And it must be smth like a zone file error maybe.
isnth these lines i posted at the beginig all that i must have or not...
NOTE: I never edited animscripts/weaponlist.gsc
Share |
Ni3ls
General Member
Since: Nov 7, 2008
Posts: 256
Last: Sep 9, 2017
[view latest posts]
Level 5
Category: CoD4 SP Mapping
Posted: Friday, Jun. 27, 2014 02:31 pm
Then i have no clue
Share |
SPi
General Member
Since: Jul 4, 2012
Posts: 531
Last: Nov 9, 2019
[view latest posts]
Level 6
Category: CoD4 SP Mapping
Posted: Saturday, Jun. 28, 2014 02:09 am
No problem guys, ill release this demo without weapon clips..
theres no shame [wink]
Share |
Restricted Access Topic is Locked
Page
Next Page
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

»