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

Members Online

»
0 Active | 6 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: making a sniper scope
masterp
General Member
Since: Dec 11, 2006
Posts: 29
Last: Jun 8, 2007
[view latest posts]
Level 2
Category: CoD Mapping
Posted: Thursday, Jun. 7, 2007 05:25 pm
Hi Guys, just wondering if someone could point me in the right direction to making a cod1 sniper rifle mod, you know so it has 2 or 3 zoom levels
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD Mapping
Posted: Thursday, Jun. 7, 2007 05:56 pm
Try taking a look at some of the sniper mods which are out there.. not sure if you can use more than one zoom level though.
Share |
masterp
General Member
Since: Dec 11, 2006
Posts: 29
Last: Jun 8, 2007
[view latest posts]
Level 2
Category: CoD Mapping
Posted: Thursday, Jun. 7, 2007 07:50 pm
I have seen some with 2 or 3 zoom settings but cant seem to find them now, actually i could probably get one from a sniper server and just change the images in the scope.
Share |
playername
Preferred Member
Since: Aug 24, 2006
Posts: 821
Last: Apr 15, 2011
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD Mapping
Posted: Thursday, Jun. 7, 2007 07:54 pm
havn't done much in moding weapons but it would be nice to know... do you right click to gointo the scope then right click again to zoom or use the mouse wheal?
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 |
moviestar
General Member
Since: May 4, 2006
Posts: 86
Last: May 4, 2008
[view latest posts]
Level 3
Category: CoD Mapping
Posted: Thursday, Jun. 7, 2007 08:22 pm
The only way of doing sniper scope zoom is with the 'Alt' weapon mode (Pressing M by default) Most of the guns already have an alt weapon mode where it switches to semi auto but sniper rifles dont use or have one as stock.

If you like i could make one for you as its too long to explain on here how to do it.

There are 2 problems with doing it and they are the 'alt weapon switch anim' as there isnt one for rifles and also there can be problems with ammo loadouts, which the new alt weapon modes needs to be added to the 'rank.gsc' and also the '_teams.gsc' , which i can sort for you also.

Share |
masterp
General Member
Since: Dec 11, 2006
Posts: 29
Last: Jun 8, 2007
[view latest posts]
Level 2
Category: CoD Mapping
Posted: Thursday, Jun. 7, 2007 08:24 pm
thx that would be great, send me a pm and we can talk about it
Share |
ITOE_MC
General Member
Since: Sep 3, 2006
Posts: 342
Last: Nov 12, 2009
[view latest posts]
Level 5
Category: CoD Mapping
Posted: Thursday, Jun. 7, 2007 08:43 pm
I think this would work:

Say you're modding the springfield to have 3 zoom levels. You'd create three weapon files with almost identical characteristics:

1. springfield_mp
2. springfield_a_mp
3. springfield_b_mp

In each weapon file, you'll have to make two changes:

1. set the correct "altweapon"
2. set the zoom field of view ("adszoomfov")

For the altweapon settings, you'd set it up like this:

1. springfield_mp's altweapon = springfield_a_mp
2. springfield_a_mp's altweapon = springfield_b_mp
3. springfield_b_mp's altweapon = springfield_mp

That should allow you to cycle through each of the three zoom stages with the "m" key. Note that you won't have to precache the a and b versions in _teams.gsc. They'll just work.

For the adszoomfov settings, the lower the number, the more zoom you get. I think the stock setting for the springfield is adszoomfov\10. So you could use that number for the original weapon, and then use 6 for springfield_a_mp, and 2 for springfield_b_mp. If that's too much zoom, try 8 and 6, or 7 and 4. I'm guessing that 7 and 4 would probably work the best.

I've done this for the Sako on our mod for two zoom levels (8 and 4), and it worked fine. I've found, however, that a zoom level of 4 really restricts how much you can see through the scope, so it might be better for sniper-only servers. Play around with the numbers and see what you like.

Another thing you might want to do is change the weaponname in the weapon file so people know what zoom level they're at.

Good luck.

ITOE_MC
Share |
ITOE_MC
General Member
Since: Sep 3, 2006
Posts: 342
Last: Nov 12, 2009
[view latest posts]
Level 5
Category: CoD Mapping
Posted: Thursday, Jun. 7, 2007 08:45 pm
Quote:
and also there can be problems with ammo loadouts, which the new alt weapon modes needs to be added to the 'rank.gsc' and also the '_teams.gsc'


I don't think that would be a problem as long as the stock weapon is what you'd select in the weapon menu.
Share |
|DA|DarkDilbert
General Member
Since: Jun 5, 2006
Posts: 675
Last: Apr 29, 2008
[view latest posts]
Level 6
Category: CoD Mapping
Posted: Thursday, Jun. 7, 2007 10:17 pm
No, sorry, i've had this problem too. Alt weapon modes count as seperate weapons so the game doesn't know to add ammo - in S&D you can end up spawning with no ammo if you had an alt mode selected at the end of the round
Share |
ITOE_MC
General Member
Since: Sep 3, 2006
Posts: 342
Last: Nov 12, 2009
[view latest posts]
Level 5
Category: CoD Mapping
Posted: Thursday, Jun. 7, 2007 10:19 pm
I didn't think about the SD thing, but I've still never encountered the problem.
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

»