![]() |
|
tag_flash.origin - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: tag_flash.origin (/Thread-tag-flash-origin.html) Pages:
1
2
|
tag_flash.origin - GenaSG - 08-09-2012 Hello guys. Is it possible to get origin and angles of player's weapon tag_flash? RE: tag_flash.origin - Pozzuh - 08-09-2012 Maybe, Code: org = self GetTagOrigin( "tag_flash" );RE: tag_flash.origin - GenaSG - 08-09-2012 (08-09-2012, 07:48)Pozzuh Wrote: Maybe, 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? RE: tag_flash.origin - master131 - 08-09-2012 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". RE: tag_flash.origin - Yamato - 08-09-2012 I already sent you the way
RE: tag_flash.origin - GenaSG - 08-09-2012 (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.... 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. RE: tag_flash.origin - Yamato - 08-09-2012 (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.... 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. RE: tag_flash.origin - GenaSG - 08-09-2012 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"? RE: tag_flash.origin - Pozzuh - 08-09-2012 (08-09-2012, 15:18)GenaSG Wrote: Ok. I'll try to describe why do I need tag_flash origin. 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". RE: tag_flash.origin - GenaSG - 08-09-2012 (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 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"? |