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

Members Online

»
0 Active | 17 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

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
Category: CoD Mapping
CoD mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: beginners guide to CoD1 Mod Scripting?
Duckster22
General Member
Since: Aug 22, 2011
Posts: 6
Last: Aug 23, 2011
[view latest posts]
Level 0
Category: CoD Mapping
Posted: Monday, Aug. 22, 2011 06:01 am
Hi all I hope someone can help me,

Where can I find a beginners guide to writing Mods for CoD1. I do not wish to make maps I just want to make a custom mod for rifles only play with a few effects like seen in other mods like sprinting or other stuff. I not new to coding just don't know all the syntax specialties and functions etc available to me. I have been studying some mods and I think I have some basics down but I am still a little confused by some things I see like what does for(;;) mean exactly?

Also can I write a mod to check player cvar settings? like Can I check to see if a players rate is 25000 and if not issue warnings to them and/or eventually punish them for not changing it?

Anyway I noticed most of the tutorials here are on mapping I just need the scripting tutorials so if someone can point me to those that would be great! thanks!
Share |
BrainStorm
General Member
Since: Aug 26, 2009
Posts: 24
Last: Jan 20, 2014
[view latest posts]
Level 1
Category: CoD Mapping
Posted: Monday, Aug. 22, 2011 03:19 pm
Start off by downloading a rifle mod already working or a more complete like awe2.12

Then work with that. Change variables, see what they do.

Look in the files, they're text files so you can read and follow.

Good luck!
Share |
Duckster22
General Member
Since: Aug 22, 2011
Posts: 6
Last: Aug 23, 2011
[view latest posts]
Level 0
Category: CoD Mapping
Posted: Monday, Aug. 22, 2011 03:45 pm
Yeah I've already started that. I have strong background in php so general coding is not a problem what more I am looking for is a list of Utility Functions and Properties available to me.

While I can get there eventually by disecting existing mods I can get there in a 1/4 of the time or less with a list of built in functions and properties available to me somewhere where I can refer to.

I mean looking in a mod I can see a calll to a function but then I gotta search the files to see if thats a user defined function by the mod writer or whether it is a system function by the egine.

I am surprised it is sooo hard to find any info on this stuff anywhere.I do realize everyones modding for CoD 4 or higher these days but there must be CoD1 archives somewhere on the web that give you a list of functions and properties available to you?
Share |
BrainStorm
General Member
Since: Aug 26, 2009
Posts: 24
Last: Jan 20, 2014
[view latest posts]
Level 1
Category: CoD Mapping
Posted: Monday, Aug. 22, 2011 03:51 pm
I see what you mean.
I've not found one, but with some good editing/search tools you'll find the functions easily.

I've learned that way, the hard way and I don't know of another.

I've started here on this website, downloading mods and looking, toying with them.
Share |
Duckster22
General Member
Since: Aug 22, 2011
Posts: 6
Last: Aug 23, 2011
[view latest posts]
Level 0
Category: CoD Mapping
Posted: Monday, Aug. 22, 2011 04:58 pm
Yeah sadly I am rsigned to having to do it the hard way I suppose. Sucks! One thing though I found a list of functions for modding CoD4 which may halep a little cause I am sure there are similar functions in CD1 to some of theones mentioned there so it is at least a ground start. Thanks for replying though!
Share |
serthy
General Member
Since: Sep 8, 2010
Posts: 482
Last: Jun 28, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD Mapping
Posted: Monday, Aug. 22, 2011 05:23 pm
http://wiki.modsrepository.com/index.php/Call_of_Duty_4:_Scripting_Reference

yeah, half of all of them should work (the basic things)
just try it out

/developer 1 also helps alot

good luck
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: CoD Mapping
Posted: Tuesday, Aug. 23, 2011 12:50 am
This is something i wrote a loonnnngggg time ago.

it is still relevant and will get you going in the scripting end of things

http://modsonline.com/Tutorials-read-121.html

[angryalien]
Share |
Sevenz
General Member
Since: Apr 24, 2006
Posts: 2390
Last: May 10, 2013
[view latest posts]
Level 8
Category: CoD Mapping
Posted: Tuesday, Aug. 23, 2011 08:21 am
here is a scripting introduction, which explains the basic syntax (very similar to C-like languages):

http://wiki.modsrepository.com/index.php/Call_of_Duty_4:_Introduction
Share |
Tally
General Member
Since: Apr 21, 2005
Posts: 819
Last: Oct 26, 2012
[view latest posts]
Level 7
Category: CoD Mapping
Posted: Tuesday, Aug. 23, 2011 09:11 am
Duckster22 writes...
Quote:
Yeah sadly I am rsigned to having to do it the hard way I suppose. Sucks! One thing though I found a list of functions for modding CoD4 which may halep a little cause I am sure there are similar functions in CD1 to some of theones mentioned there so it is at least a ground start. Thanks for replying though!


The scripting language of COD4 is different from COD1, because it is a different engine. A few of the basic functions will work, but most will not. So, be very careful with what you see in 4, because chances are it wont work in 1.

As for COD1 resources, the best resource for all the old tutorials was at IWNation, which was formerly the official IW forums, but that site has now sadly closed its doors, so all that goodness has been lost forever.

I will tell you how I learnt COD script language - I looked at mods like AWE and Revolt. Just looking through them will give you all that you need to know about how to script for COD1.
Share |
Duckster22
General Member
Since: Aug 22, 2011
Posts: 6
Last: Aug 23, 2011
[view latest posts]
Level 0
Category: CoD Mapping
Posted: Tuesday, Aug. 23, 2011 09:27 am
@all thanks for the replies.

Yeah I am picking up quite abit just studying the code. Of course that elusive list of builtin functions, properties etc wouls always be invaluable but hey over time I'll gather some of them up I am sure.

I do realize CoD4 is a different engine but some of the functions may be close actually like i tested setDvar with changing "Dvar" to "Cvar" (ergo setCvar) which is more CoD1 lingo and it worked so with that process in mind if you find a function in CoD4 that doesn't work in CoD1 it may be possible it is worded differently and a little commonsense might help you find it (or close enough replicant) by searching some pk3's [devilishgrin]
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty : CoD 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

»