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

Members Online

»
0 Active | 53 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: Detach/Hide/Remove Scope R700
BobboB
General Member
Since: Sep 25, 2010
Posts: 5
Last: Sep 28, 2010
[view latest posts]
Level 0
Category: CoD4 Scripting
Posted: Saturday, Sep. 25, 2010 01:40 pm
How is it possible to detach/hide/remove the scope on the R700?

I saw it once in a frag vid of someone.
Share |
eganwotv
Deactivated Account
Since: May 28, 2007
Posts: 961
Last: Oct 31, 2010
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD4 Scripting
Posted: Saturday, Sep. 25, 2010 01:49 pm
Edit the weapon model.
Share |
BobboB
General Member
Since: Sep 25, 2010
Posts: 5
Last: Sep 28, 2010
[view latest posts]
Level 0
Category: CoD4 Scripting
Posted: Saturday, Sep. 25, 2010 01:59 pm
Is there somewhere a tut that explains how to do that?

And isn't it possible with something like this:
Code:
self HidePart( "scope", "weapon_remington700_mp" );

or
Code:
self Detach( "scope", "weapon_remington700_mp" );
Share |
eganwotv
Deactivated Account
Since: May 28, 2007
Posts: 961
Last: Oct 31, 2010
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD4 Scripting
Posted: Saturday, Sep. 25, 2010 03:57 pm
Only way you can take it off is if it's a separate entity from the gun itself.
Share |
BobboB
General Member
Since: Sep 25, 2010
Posts: 5
Last: Sep 28, 2010
[view latest posts]
Level 0
Category: CoD4 Scripting
Posted: Saturday, Sep. 25, 2010 04:09 pm
vT-Thompson writes...
Quote:
Only way you can take it off is if it's a separate entity from the gun itself.

And is that the case? Or not?
Share |
eganwotv
Deactivated Account
Since: May 28, 2007
Posts: 961
Last: Oct 31, 2010
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD4 Scripting
Posted: Saturday, Sep. 25, 2010 04:20 pm
BobboB writes...
Quote:
vT-Thompson writes...
Quote:
Only way you can take it off is if it's a separate entity from the gun itself.

And is that the case? Or not?


Don't know, you'll have to look at the models and find out.
Share |
SparkyMcSparks
General Member
Since: Feb 28, 2004
Posts: 1713
Last: Dec 29, 2016
[view latest posts]
Level 8
Im a fan of MODSonair
Category: CoD4 Scripting
Posted: Saturday, Sep. 25, 2010 08:21 pm
vT-Thompson writes...
Quote:
BobboB writes...
Quote:
vT-Thompson writes...
Quote:
Only way you can take it off is if it's a separate entity from the gun itself.

And is that the case? Or not?


Don't know, you'll have to look at the models and find out.

If you don't know why would you say the only way is to edit the model? You sounded pretty sure of yourself.

And it's not the only way, you do it in script using ShowPart/HidePart like BobboB found, or in Asset Manager on the weapon entries:


It cost less memory to have one model with all the attachments and use AssetManageer to hide specific parts, rather than have separate entity models with different attachments each.
Share |
eganwotv
Deactivated Account
Since: May 28, 2007
Posts: 961
Last: Oct 31, 2010
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD4 Scripting
Posted: Saturday, Sep. 25, 2010 08:48 pm
SparkyMcSparks writes...
Quote:
vT-Thompson writes...
Quote:
BobboB writes...
Quote:
vT-Thompson writes...
Quote:
Only way you can take it off is if it's a separate entity from the gun itself.

And is that the case? Or not?


Don't know, you'll have to look at the models and find out.

If you don't know why would you say the only way is to edit the model? You sounded pretty sure of yourself.

And it's not the only way, you do it in script using ShowPart/HidePart like BobboB found, or in Asset Manager on the weapon entries:


It cost less memory to have one model with all the attachments and use AssetManageer to hide specific parts, rather than have separate entity models with different attachments each.


Then by all means, help away. I have no problem with it, but I do have a problem with you questioning my motives, you don't know me, therefore you can't judge me. [moon]
Share |
ukdjaj
General Member
Since: Jun 1, 2008
Posts: 2726
Last: Nov 15, 2020
[view latest posts]
Level 9
Category: CoD4 Scripting
Posted: Saturday, Sep. 25, 2010 11:16 pm
By all means, i might be wrong, but if i remeber, you dont have a tag for the sight, only for the weapon, the bolt and the clip. You also have a tag_brass and tag_flash, for the shell ejection and fx.

The scope would be in the "weapon" tag.




edit

Anyway, i just exported the file, and its all in one piece so i dont think there would be a way of using a script to do it.

Anyway i have attached a model_export of what i exported, i did this in maya 6 so it proberally wont work as cod4 is maya 8, but try it anyway.

If you get a error and it says something like "cant find mtl_remmingtonr700.iwi"

This means that it cant find the image file, so look in your iw_"//" and find a file that should be called "weapon_remmington_r700_col" And then rename that to what ever error name you were getting then use assman to make that to a standard image thats not in editor then it should work =)

Hope This helped.

Thanks, Ukdjaj[thumbs_up]
Share |
ukdjaj
General Member
Since: Jun 1, 2008
Posts: 2726
Last: Nov 15, 2020
[view latest posts]
Level 9
Category: CoD4 Scripting
Posted: Saturday, Sep. 25, 2010 11:22 pm
attachment: application(14.2Kb)
Sorry Didnt Let me add an attachment so here it is
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

»