| Author |
Topic: Admin/Console Nuke |
| CPTYOZ |
General Member Since: Jan 28, 2007 Posts: 26 Last: Jan 20, 2009 [view latest posts] |
|
|
|
Category: CoD2 Scripting Posted: Sunday, Dec. 30, 2007 06: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]](images/BBCode/smilies/machine_gun.gif) 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 |
 |
General Member Since: Dec 6, 2006 Posts: 104 Last: Aug 24, 2008 [view latest posts] |
|
|
|
Category: CoD2 Scripting Posted: Sunday, Dec. 30, 2007 09: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. |
 |
|
|
|
|
Category: CoD2 Scripting Posted: Wednesday, Jan. 2, 2008 01:25 pm |
 |
Hey,
I am looking for the saem information. However, being new to this i'm not fully sure what i am doing ![[idea]](images/BBCode/smilies/idea.gif) .
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: 821 Last: Apr 15, 2011 [view latest posts] |
|
|
 |
 |
|
|
| Scratchy |
 |
General Member Since: Feb 10, 2006 Posts: 276 Last: Mar 16, 2009 [view latest posts] |
|
|
|
Category: CoD2 Scripting Posted: Wednesday, Jan. 2, 2008 04:52 pm |
 |
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. |
 |
|
|
|
|
Category: CoD2 Scripting Posted: Thursday, Jan. 3, 2008 04:02 pm |
 |
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
-Swren- |
 |
|
|
|
|
mp_TempleCall of Duty: Mods: Multiplayer (624.12Kb)
|