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
Bull [Today]
JerryAtricks [Forum]
Welshy [Today]
deadelvis [Forum]
supersword [Today]
corrie [Forum]
tomv8 [Forum]
foyleman [Messa]
Sgt.Rampage [Forum]
4sakin [Tutor]
bigRope [Tutor]
starkk [Today]
Boltriflem... [Forum]
*UWS*KILL_... [Forum]

14 Members and 12 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 29.21%
Multiplayer 62.92%
WHAT!? The tools are out? 7.87%
Read More...
10 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
ERROR: CodeCallback_StartGameType[]
CoD 4 Level Desi.. Posts: (10) Views: (59) by JerryAtricks
Mirror's Edge PC Release Date Announced
News Around the .. Posts: (2) Views: (2) by supersword
EFFECTS ERROR
CoD 4 Level Desi.. Posts: (4) Views: (57) by JerryAtricks
missing loadscreen
CoD:WW Level Des.. Posts: (2) Views: (16) by *UWS*KILL_ME_NOW
Art of War Central 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 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, rEdrUmMDK, Foxhound, Wyatt_Earp, Rasta, StrYdeR, The_Caretaker, Cypher2004, batistablr, Welshy
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: Admin/Console Nuke
CPTYOZ
General Member
Since: Jan 28, 2007
Posts: 22
Last: Apr 20, 2008
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Sunday, Dec. 30, 2007 01:21 am
hi everyone...

i have been toying around with the idea of making Admin/Console Artillery. Nothing is working. What i had planned was that you put a .cfg file in your server and name is something like nuke.cfg. Then when you are playing and everyone in the server is pee-peeing you off, you type in /rcon exec nuke.cfg...A nuke falls from the sky Then KABLAMM! everyone dies...lol I really dont know how to get this to work. And the only solution i can come up with is a .cfg file which of course i dont know where to start.. I already have the xmodel for the bomb, and chosen effects for the explosion.. Anyone have anyidea what the .cfg file should look like.. Or is this even possible.. I know this is a hard one but please try to help. Thanks
CPTYOZ[machine_gun]BTW i love how the forums sensors everything i was trying to say p 1 s s 1 n g lol sorry i didnt mean to post this twice i thought it wasnt working so i hit post 2wice by accident

edited on Dec. 30, 2007 01:24 am by CPTYOZ
macklebee
Preferred Member
Since: Dec 6, 2006
Posts: 104
Last: Aug 24, 2008
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Sunday, Dec. 30, 2007 04:05 am
well, I don't know anything about CoD2, but at least in CoD1 using it as a config file will not work like you are planning. Changing to a different config file usually requires you to restart the game, and if I read your intentions correctly, you just want to punish everyone on the server when they are being annoying.

If you make a server variable, like sv_nuke, that you can change by typing in a rcon command, that will get you what you want.

Then from there you can either just make do the effect and a large radius damage that will kill everyone no matter where they are or do the effect and use the built in smite or kill command to kill everyone off. If you have an xmodel, make sure it is a model that is inherent to the game or people joining your server will need to download the model as well.

I do a rcon punishment to individuals on my server that turns them into either an exploding cow or a flaming toilet (for potty-mouths), but it could easily be performed against everyone playing on the server with a slight tweak of the code.

If you use the AWE mod, I suggest that you read some of the code to see how they made new server variables.
Swren
General Member
Since: Dec 24, 2007
Posts: 12
Last: Jan 6, 2008
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Wednesday, Jan. 2, 2008 08:25 am
Hey,

I am looking for the saem information. However, being new to this i'm not fully sure what i am doing [idea].

Are there any tutorials on how to create (using the exmaple) a Nuke Bomb?

And then which you can implement on the server in order to just blow up everyone on server?

I have always found this add on are great fun, so.. any ideas?

Thanks

-Swren-
playername
Preferred Member
Since: Aug 24, 2006
Posts: 696
Last: Nov 22, 2008
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Wednesday, Jan. 2, 2008 09:59 am
well i don't think you would use a .cfg file for that. You might have to set it to a cmd to be typed in for rcon, but I don't mess with that stuff.
Few tips for coding.
1. Keep the script as short as possable.
2. Don't use comments unless you HAVE to point something out.
3. Don't over complicate the script, keep it orgainized and easy to read.

These help you find simple errors and makes it easy to make changes.
Scratchy
General Member
Since: Feb 9, 2006
Posts: 271
Last: Jan 23, 2008
[view latest posts]
Level 5
Category: CoD2 Scripting
Posted: Wednesday, Jan. 2, 2008 11:52 am
Your going to need to make a mod for this. Main things you need to learn or know about are...

  • Making fx files
  • Making Client side mods (the client needs the efx file to see the nuke)
  • Making CVARS
  • Using damageradius()
  • Playing fx
  • Getting a coordinate for your nuke

Ill try to get tutorials that apply to what you need...

Making a PK3
Adding FX to your map(Shows you how to precache and play FX)
Playing sounds(Play the nuke sound)
Resizing EFX
Getting Started in Scripting (Moving Things)(This has a good section on script syntax)

THats all I could find on this site.
Swren
General Member
Since: Dec 24, 2007
Posts: 12
Last: Jan 6, 2008
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Thursday, Jan. 3, 2008 11:02 am
Lookign at all of that i feel that i will have the time and paitence to build my own and then apply it to the server.

Does anyone have any mods like this for download?

And any instructions on how to apply to our servers so that the admin can simply give a command to trigger it?

I doubt it, but i might aswell ask and see [tongue]

-Swren-
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 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.
Art of War Central
Partners
CODAddicts - Call of Duty News & Downloads
XoXide
The Firing Box
Frag Universe
Call of Duty Headquarters
modbase.be
Battle for Europe COD2
Ask About
Advertising
Friends
Great Gamer
After Life Gaming
Volcano
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:
12/07/2008 12:00 EST

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