MODSonline
  Welcome Guest to MODSonline Home | Forums | Register | Login
Main-Menu
Home
Login
Register
Add Download
Add News
Add Tutorial *
Forums

Advertise
Affiliate Store US *
Affiliate Store UK *
Affiliate Store CA *
Angry Letter Generator
Avatar Upload
Calendar of Games
Contact
Downloads
FAQs
Forums
Member List
Member Projects
News
News Grabber *
Policy
Polls
Private Messages
Reviews
Screenshot Gallery
Search
Servers - Game
Store - Shirts *
Subscribe
Topics
Tutorials
Weblinks
Wiki *
Tutorials
CoD Mapping
CoDUO Mapping
CoD2 Mapping
CoD4 Mapping
CoDWW Mapping
CoD FAQs
HL2 Mapping
HL2 FAQs
SOF1 Mapping
Crysis Mapping
Q4 Mapping
Doom 3 Mapping
Doom 3 FAQs
UT2K3 Mapping
SOF2 Mapping
SOF2 FAQs

Lightray Modeling
General Modeling
General Modding
Adobe Photoshop
Common Mapping Errors

Readme.txt Generator
Members-Online
uberrogue [Forum]
joemax [Tutor]
rpsnider85 [Forum]
[ToC]Black... [Forum]
ROTCGuy [Forum]
starkk [Today]

6 Members and 13 Guests
Chat MODSonline
0 People Now Chatting
MODSOnline TeamSpeak

download TeamSpeak

In-The-News
Monday, Dec. 1st
A message from foyleman
Sunday, Nov. 30th
MODSonair 156 Live
Friday, Nov. 28th
MODSonair Episode 155
Wednesday, Nov. 26th
MODSonair Forum Buttons
Monday, Nov. 24th
Holiday Gift Guide 2008 - PC
Latest Poll
Single or Multiplayer maps for World at War?
Single-Player 30.12%
Multiplayer 61.45%
WHAT!? The tools are out? 8.43%
Read More...
10 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
A message from foyleman
In The News.. Posts: (4) Views: (35) by babycop
Zombie Map Issues with Launcher also.
CoD:WW Level Des.. Posts: (9) Views: (142) by Spuddy
Hud
CoD General Gami.. Posts: (1) Views: (12) by Harbinger
recoil...
CoD General Gami.. Posts: (2) Views: (40) by Harbinger
Google 468 Banner Quake 4 Mods for Dummies
CoDWW Download
Forums
MODSonline.com 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: CoD 4 Scripting
Scripting and coding with Call of Duty 4.
Moderators: foyleman, rEdrUmMDK, Foxhound, Rasta, StrYdeR, The_Caretaker, batistablr, playername, Welshy
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access
Page
Next Page
subscribe
Author Topic: Help me.
michak55
General Member
Since: Aug 25, 2008
Posts: 13
Last: Sep 2, 2008
[view latest posts]
Level 1
Category: CoD 4 Scripting
Posted: Tuesday, Aug. 26, 2008 10:05 am
Hi,
I am writing my first mod. I would like have capability of change fire type in it but I don't know how to do that. I know only that for change it I must edit e.g. ak47 file. I would like to change it after clicking any button. I would like too to all have their level (when I am playing my mod i have 1 level).
Please help me [wink]

edited on Aug. 26, 2008 10:06 am by michak55
michak55
General Member
Since: Aug 25, 2008
Posts: 13
Last: Sep 2, 2008
[view latest posts]
Level 1
Category: CoD 4 Scripting
Posted: Wednesday, Aug. 27, 2008 08:44 am
Anybody can help me?
Sevenz
General Member
Since: Apr 24, 2006
Posts: 1133
Last: Nov 28, 2008
[view latest posts]
Level 8
Category: CoD 4 Scripting
Posted: Wednesday, Aug. 27, 2008 10:05 am
where the game gives the weapons to the players

\raw\maps\mp\gametypes\_class.gsc, line 627

giveLoadout( team, class ) { //... }


you could give each player the weapon with your desired fire mode (new weapon files for each weapon with a specific fire mode).

i worry it won't work with such a lot weapon files, 'cause cod4 is limited to 128 weapon assets in MP, and about 110 are already in use!
michak55
General Member
Since: Aug 25, 2008
Posts: 13
Last: Sep 2, 2008
[view latest posts]
Level 1
Category: CoD 4 Scripting
Posted: Thursday, Aug. 28, 2008 02:44 am
Ok but how can I change weapon file after clicking e.g. shift?
Sevenz
General Member
Since: Apr 24, 2006
Posts: 1133
Last: Nov 28, 2008
[view latest posts]
Level 8
Category: CoD 4 Scripting
Posted: Thursday, Aug. 28, 2008 10:53 am
either by menu workaround / hack or obtain the key status via script (buttonpressed, meleebuttonpressed - sprint or knife?)
michak55
General Member
Since: Aug 25, 2008
Posts: 13
Last: Sep 2, 2008
[view latest posts]
Level 1
Category: CoD 4 Scripting
Posted: Thursday, Aug. 28, 2008 12:31 pm
Ok, can You give me a script for edit file?
Sevenz
General Member
Since: Apr 24, 2006
Posts: 1133
Last: Nov 28, 2008
[view latest posts]
Level 8
Category: CoD 4 Scripting
Posted: Thursday, Aug. 28, 2008 01:09 pm
no, and i think what you are about to try is much too complex for your first mod.

check out the stock menus if you like, \raw\ui_mp\
Sevenz
General Member
Since: Apr 24, 2006
Posts: 1133
Last: Nov 28, 2008
[view latest posts]
Level 8
Category: CoD 4 Scripting
Posted: Thursday, Aug. 28, 2008 01:47 pm
have a look at the source code of OpenWarfare:

http://openwarfaremod.com/

new feature in 1.1.1:

Quote:
Option to enable weapon jams where weapons can stop firing at certain point and the player needs to clear the jam to be able to use that weapon again.


you could modify the code to simulate fire modes


michak55
General Member
Since: Aug 25, 2008
Posts: 13
Last: Sep 2, 2008
[view latest posts]
Level 1
Category: CoD 4 Scripting
Posted: Friday, Aug. 29, 2008 03:44 am
Can You tell me where is error in this code?

Code:
Sevenz
General Member
Since: Apr 24, 2006
Posts: 1133
Last: Nov 28, 2008
[view latest posts]
Level 8
Category: CoD 4 Scripting
Posted: Friday, Aug. 29, 2008 08:22 am
what's the error message?
Restricted Access Restricted Access
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD 4 Scripting
All logos and trademarks and information in this site are property of MODSonline LLC © 2008.
The comments are property of their posters.
RSS news feeds for MODSonline can be found News.php.
MODSonline Subscriptions
Partners
modbase.be
Call of Duty Headquarters
The Firing Box
Frag Universe
XoXide
CODAddicts - Call of Duty News & Downloads
Battle for Europe COD2
Ask About
Advertising
Friends
CoD 4 Base
SOF2 Files and Downloads
Great Gamer
Ask About
Advertising
Link to Us
MODSonair
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
MODSonair Releases
MODSonair Episode 155
MODSonair Episode 154
MODSonair Episode 153
MODSonair Episode 152
MODSonair Episode 151
Next Show
The next MODSonair show will air LIVE on:

Time remaining:
Copyright © 2008 MODSonline
Tresware Content Management System Copyright © 2008 Tresware
Website Designed and Hosted   Tresware