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

Members Online

»
0 Active | 252 Guests
Online:

LATEST FORUM THREADS

»
New BF2 Mod
BF2 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 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Admin/Console Nuke
CPTYOZ
General Member
Since: Jan 28, 2007
Posts: 26
Last: Jan 20, 2009
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Saturday, Dec. 29, 2007 11:21 pm
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
Share |
macklebee
General Member
Since: Dec 5, 2006
Posts: 104
Last: Aug 24, 2008
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Sunday, Dec. 30, 2007 02: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.
Share |
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 06: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-
Share |
playername
Preferred Member
Since: Aug 24, 2006
Posts: 821
Last: Apr 15, 2011
[view latest posts]
Level 7
Forum Moderator
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Wednesday, Jan. 2, 2008 07: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.
nullFew tips for coding.
1. Keep the script as short as possible.
2. Don't comment every line. Only comment portions where they may be needed to point something out.
3. Don't over complicate the script, keep it organized and easy to read.

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

  1. Making fx files
  2. Making Client side mods (the client needs the efx file to see the nuke)
  3. Making CVARS
  4. Using damageradius()
  5. Playing fx
  6. 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.
Share |
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 09: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-
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

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

»