08-09-2012, 07:35
Pages: 1 2
08-09-2012, 07:48
Maybe,
? I'm not completely sure if this will work.
Code:
org = self GetTagOrigin( "tag_flash" );
08-09-2012, 07:55
(08-09-2012, 07:48)Pozzuh Wrote: [ -> ]Maybe,
? I'm not completely sure if this will work.Code:org = self GetTagOrigin( "tag_flash" );
It won't work, because player's world model doesn't have such tag. This is viewmodel's(weapon) tag. Is it possible to get reference to viewmodel?
08-09-2012, 08:17
Try this, might work. I found this function (which was commented out) in MW2. Might work on Black Ops....
Are you sure what Pozzuh posted doesn't work? I looked in Black Ops' GSC and found that in zombies, GetTagPos does work on "tag_flash".
Code:
viewModel = self getViewModel();
pos = viewModel getTagPos("tag_flash");
Are you sure what Pozzuh posted doesn't work? I looked in Black Ops' GSC and found that in zombies, GetTagPos does work on "tag_flash".
08-09-2012, 13:48
I already sent you the way
08-09-2012, 14:20
(08-09-2012, 08:17)master131 Wrote: [ -> ]Try this, might work. I found this function (which was commented out) in MW2. Might work on Black Ops....
Code:viewModel = self getViewModel();
pos = viewModel getTagPos("tag_flash");
Are you sure what Pozzuh posted doesn't work? I looked in Black Ops' GSC and found that in zombies, GetTagPos does work on "tag_flash".
I forgot to mention that I am modding CoD 4. GetTagPos - unknown function.
(08-09-2012, 13:48)Yamato Wrote: [ -> ]I already sent you the way
It woks only if you have reference to entity.model. I don't know how to get reference to entity.viewmodel. self getviewmodel won't help. It only returns model name.
08-09-2012, 14:45
(08-09-2012, 14:20)GenaSG Wrote: [ -> ](08-09-2012, 08:17)master131 Wrote: [ -> ]Try this, might work. I found this function (which was commented out) in MW2. Might work on Black Ops....
Code:viewModel = self getViewModel();
pos = viewModel getTagPos("tag_flash");
Are you sure what Pozzuh posted doesn't work? I looked in Black Ops' GSC and found that in zombies, GetTagPos does work on "tag_flash".
I forgot to mention that I am modding CoD 4. GetTagPos - unknown function.
(08-09-2012, 13:48)Yamato Wrote: [ -> ]I already sent you the way
It woks only if you have reference to entity.model. I don't know how to get reference to entity.viewmodel. self getviewmodel won't help. It only returns model name.
The viewmodel angles should be same as:
Code:
self getPlayerAngles();
I dont know about origin, I found this function on MW2, I havent tried it but I guess it will return the height of your eye respect to your origin
Code:
self getPlayerViewHeight();
So the origin of the viewmodel would be:
Code:
( self getOrigin()[0], self getOrigin()[1], self getOrigin()[2] + self getPlayerViewHeight() )
I am not really sure.
08-09-2012, 15:18
Ok. I'll try to describe why do I need tag_flash origin.
I am developer of ProjectileWeapons mod for call of duty 4. I want to improve realism of the mod. I want to make so that bullets will "shoot" from weapon's barrel. I see two alternatives here:
1)Get origin and angles of weapon's tag flash and spawn bullet using those values(But I don't know how to get those values).
2)I can spawn models using muzzleflash effect(like brickblaster_mp) but I can't get origin of those "bricks". Is it possible to get origin of those "bricks"?
I am developer of ProjectileWeapons mod for call of duty 4. I want to improve realism of the mod. I want to make so that bullets will "shoot" from weapon's barrel. I see two alternatives here:
1)Get origin and angles of weapon's tag flash and spawn bullet using those values(But I don't know how to get those values).
2)I can spawn models using muzzleflash effect(like brickblaster_mp) but I can't get origin of those "bricks". Is it possible to get origin of those "bricks"?
08-09-2012, 16:03
(08-09-2012, 15:18)GenaSG Wrote: [ -> ]Ok. I'll try to describe why do I need tag_flash origin.
I am developer of ProjectileWeapons mod for call of duty 4. I want to improve realism of the mod. I want to make so that bullets will "shoot" from weapon's barrel. I see two alternatives here:
1)Get origin and angles of weapon's tag flash and spawn bullet using those values(But I don't know how to get those values).
2)I can spawn models using muzzleflash effect(like brickblaster_mp) but I can't get origin of those "bricks". Is it possible to get origin of those "bricks"?
I think it's not possible to get bullets, but it is possible to get rockets/noob tube shots. Look into it, search through the gsc files on something like "weapon_fired".
08-09-2012, 16:20
(08-09-2012, 16:03)Pozzuh Wrote: [ -> ](08-09-2012, 15:18)GenaSG Wrote: [ -> ]Ok. I'll try to describe why do I need tag_flash origin.
I am developer of ProjectileWeapons mod for call of duty 4. I want to improve realism of the mod. I want to make so that bullets will "shoot" from weapon's barrel. I see two alternatives here:
1)Get origin and angles of weapon's tag flash and spawn bullet using those values(But I don't know how to get those values).
2)I can spawn models using muzzleflash effect(like brickblaster_mp) but I can't get origin of those "bricks". Is it possible to get origin of those "bricks"?
I think it's not possible to get bullets, but it is possible to get rockets/noob tube shots. Look into it, search through the gsc files on something like "weapon_fired".
I ment projectiles. I am using "classname" "grenade" in my mod for almost all weapons. I can get them with grenades = getentarray("grenade","classname"). And how about my second question? I mean is it possible to get array of those brickblaster's "bricks"?
Pages: 1 2