The OICW Custom weapon

Obsidian General.
Tuskin
prop_physics
prop_physics
Posts: 125
Joined: Sun Jul 23, 2006 5:28 pm

The OICW Custom weapon

Post by Tuskin »

I have a question, is it possible to fire the grenades on the OICW custom weapon? There is an ammo count for them and they are mentioned in the weapon script, but I don't see how to fire them.
Image
skidz
Obsidian Gold
Obsidian Gold
Posts: 3228
Joined: Mon May 29, 2006 6:36 am
Location: Maple Ridge, BC
Contact:

Post by skidz »

Yep, the script just needs to be altered. We dont have a third fire mode setup for weapons so you need to choose between the scope and the nade.
Tuskin
prop_physics
prop_physics
Posts: 125
Joined: Sun Jul 23, 2006 5:28 pm

Post by Tuskin »

skidz wrote:Yep, the script just needs to be altered. We dont have a third fire mode setup for weapons so you need to choose between the scope and the nade.
Ok, sounds good.
Image
Vaun
COMBINE PLAYERMODEL PACK
COMBINE PLAYERMODEL PACK
Posts: 128
Joined: Tue Jul 29, 2008 1:52 am
Location: A place darker than hell

Post by Vaun »

How about making the scope its ironsight and making the grenade launcher fire2 or watever the altfire command is?
User avatar
Hyperjag3
npc_strider
npc_strider
Posts: 604
Joined: Mon May 29, 2006 8:54 am
Contact:

Post by Hyperjag3 »

That's not how the ironsights work, it's a purely visual effect and only deals with the view model.
Vaun
COMBINE PLAYERMODEL PACK
COMBINE PLAYERMODEL PACK
Posts: 128
Joined: Tue Jul 29, 2008 1:52 am
Location: A place darker than hell

Post by Vaun »

so you cant just make it work off the same key as the ironsights? Or make it work like MIs sniper rifle, it puts your view a good distance ahead.
A bullet sounds the same in every language.
User avatar
Hyperjag3
npc_strider
npc_strider
Posts: 604
Joined: Mon May 29, 2006 8:54 am
Contact:

Post by Hyperjag3 »

No, the ironsights key does ironsights for whatever view model happens to be onscreen at the time, not based on the weapon. Adding another fire mode key isn't necessarily that hard for a specific weapon, but getting it to work in general (and for scripted weapons) is a different story.
Vaun
COMBINE PLAYERMODEL PACK
COMBINE PLAYERMODEL PACK
Posts: 128
Joined: Tue Jul 29, 2008 1:52 am
Location: A place darker than hell

Post by Vaun »

I just remembered they had the same problem on the gmod oicw, you just hold e and then shoot to select the scope or grenade launcher.
A bullet sounds the same in every language.
Tuskin
prop_physics
prop_physics
Posts: 125
Joined: Sun Jul 23, 2006 5:28 pm

Post by Tuskin »

Vaun wrote:I just remembered they had the same problem on the gmod oicw, you just hold e and then shoot to select the scope or grenade launcher.
Yes but that was also Coded in "lua" not what OC is using.
Image
Vaun
COMBINE PLAYERMODEL PACK
COMBINE PLAYERMODEL PACK
Posts: 128
Joined: Tue Jul 29, 2008 1:52 am
Location: A place darker than hell

Post by Vaun »

Well theyre discussing adding lua eventually, so then, if they do, making weapons and such with multiple features will be possible. But thats assuming they do.
A bullet sounds the same in every language.
User avatar
Mr. Someguy
npc_hunter
npc_hunter
Posts: 512
Joined: Fri Dec 22, 2006 11:40 pm
Location: Pennsylvania

Post by Mr. Someguy »

Can't you just hollow out the scope so you look through it when you press ironsights?
Image
Vaun
COMBINE PLAYERMODEL PACK
COMBINE PLAYERMODEL PACK
Posts: 128
Joined: Tue Jul 29, 2008 1:52 am
Location: A place darker than hell

Post by Vaun »

If you look at the scope in halo 2/3, the scope actually shows a slightly magnified view of where you're aiming on the scope screen when at 0x magnification. Is it possible to create a distortion effect that magnifies objects in the oicws scope?
A bullet sounds the same in every language.
Blues
npc_combinegunship
npc_combinegunship
Posts: 740
Joined: Wed Feb 13, 2008 8:47 pm

Post by Blues »

Yup, by creating a texture that's using the Refract shader.
Vaun
COMBINE PLAYERMODEL PACK
COMBINE PLAYERMODEL PACK
Posts: 128
Joined: Tue Jul 29, 2008 1:52 am
Location: A place darker than hell

Post by Vaun »

Well then if they put one in the scope of the weapon, and you look through the scop of the model with ironsights, wouldnt it be like a real scope?
A bullet sounds the same in every language.
Blues
npc_combinegunship
npc_combinegunship
Posts: 740
Joined: Wed Feb 13, 2008 8:47 pm

Post by Blues »

I don't know if you can make it work like this in the Source Engine but it's worth a try. :wink:
Post Reply