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

Members Online

»
1 Active | 68 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

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: CoD4 Scripting
Scripting and coding with Call of Duty 4.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: A minigun for every sp map, the easy way
voidsource
General Member
Since: May 5, 2007
Posts: 1513
Last: Sep 1, 2013
[view latest posts]
Level 8
Category: CoD4 Scripting
Posted: Sunday, Oct. 17, 2010 07:56 pm
CREDITS

thanks go out to:
FattalError & me ( voidsource ).

FattalError made sure this would work on any given singleplayer map.
I focused on getting all the sounds to come from stock sounds,
thus saving extra packaging and filesize.



INSTALLATION

how to get this minigun to work:

A) Download the attached .zip file


1) Place the "_minigun.gsc" in your raw/maps folder.
2) Place the "minigun.csv" in you raw/soundaliases folder.
3) In radiant place a "misc_turret" and check the box that says
"pre-place". Then give it these key/values:

a) weaponinfo/minigun_player_turret
b) targetname/ minigun
c) model/ weapon_minigun
d) Place a pathnode closeby and have it target the turret.


4) Place these lines in the appropriate areas in your mapname.gsc:

a) This line goes before your "main()" funct.
#include maps\_minigun.gsc;

b) This line goes before your "maps\_load::();"
precacheShader( "hud_temperature_gauge" );

c) This line goes after your "maps\_load::();"
run_thread_on_targetname( "minigun", ::minigun_think );

5) Add these to ur zone file:

rawfile,maps/_minigun.gsc
sound,minigun,MAPNAME,all_sp
weapon,sp/minigun_player_turret
material,hud_temperature_gauge
fx,smoke/car_damage_whitesmoke
xanim,minigun_spin_idle
xanim,minigun_spin_loop
xanim,minigun_spin_start

6) Build .ff and run map with dev, developer_script, and cheats.

Any new error that pop up plz feel free to fix them. :)


heres a video preview of what the minigun looks like with everything working on it even the overheating.


Share |
voidsource
General Member
Since: May 5, 2007
Posts: 1513
Last: Sep 1, 2013
[view latest posts]
Level 8
Category: CoD4 Scripting
Posted: Sunday, Oct. 17, 2010 07:58 pm
attachment: application(7.5Kb)
ooops forgot to put the attached files xD how noob of me. lol.
Share |
canstein
General Member
Since: Oct 23, 2010
Posts: 69
Last: Jan 11, 2011
[view latest posts]
Level 3
Category: CoD4 Scripting
Posted: Saturday, Oct. 30, 2010 10:58 pm
Hey voidsource does this implementation require that the user be playing with cheats on? I know you say at the end to:

Quote:
6) Build .ff and run map with dev, developer_script, and cheats.


edited on Oct. 30, 2010 07:00 pm by canstein
Share |
voidsource
General Member
Since: May 5, 2007
Posts: 1513
Last: Sep 1, 2013
[view latest posts]
Level 8
Category: CoD4 Scripting
Posted: Saturday, Oct. 30, 2010 11:17 pm
probably not. but definately use the first 2. also in the minigun.csv change the minimal volume to 0.99 and max volume to 1, if u feel that the volume is too low. or mess with it to your hearts desire.
Share |
canstein
General Member
Since: Oct 23, 2010
Posts: 69
Last: Jan 11, 2011
[view latest posts]
Level 3
Category: CoD4 Scripting
Posted: Friday, Nov. 5, 2010 06:36 am
Finally got to the section of my map where I needed a mini-gun. Hooked this thing up and so far it works like a charm!

I ran into two really minor things in the read me:
1. It says: #include maps\_minigun.gsc; when it should say #include maps\_minigun;
2. The zone file precache list didn't include the line: xmodel,weapon_minigun which is fine. MissingAsset.csv showed me


Now I just needed some AI to shoot with this thing. Good job guys.
Share |
voidsource
General Member
Since: May 5, 2007
Posts: 1513
Last: Sep 1, 2013
[view latest posts]
Level 8
Category: CoD4 Scripting
Posted: Friday, Nov. 5, 2010 07:30 am
Ah good find on the stuff. but the major stuff is really out of the way so it becomes easy to use.Either way thanks for letting everyone else know. Feedback is always a plus, thanks mate.[thumbs_up]
Share |
sam_fisher3000
General Member
Since: Apr 18, 2007
Posts: 816
Last: Jul 16, 2016
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD4 Scripting
Posted: Friday, Dec. 17, 2010 09:22 pm
I have a minigun in my map without any of those scripts. The good thing is you have infinite fire, no temperature limit. So if anyone prefers to have infinite fire, can do it without the codes. You do need the sound though, or else it mutes a bit.

edited on Dec. 17, 2010 04:22 pm by sam_fisher3000
Share |
sam_fisher3000
General Member
Since: Apr 18, 2007
Posts: 816
Last: Jul 16, 2016
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD4 Scripting
Posted: Friday, Dec. 17, 2010 09:26 pm
Code:
#include maps\_minigun.gsc;


I believe it should be this.

Code:
#include maps\_minigun;
Share |
voidsource
General Member
Since: May 5, 2007
Posts: 1513
Last: Sep 1, 2013
[view latest posts]
Level 8
Category: CoD4 Scripting
Posted: Saturday, Dec. 18, 2010 03:30 am
yea thanks for pointing out wats been pointed out sam.
Share |
sam_fisher3000
General Member
Since: Apr 18, 2007
Posts: 816
Last: Jul 16, 2016
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD4 Scripting
Posted: Saturday, Dec. 18, 2010 03:34 am
voidsource writes...
Quote:
yea thanks for pointing out wats been pointed out sam.


I was making it larger for people to see.
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 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

»