Raised This Month: $ Target: $400
 0% 

how to get p model's entity id


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
1023168216
Member
Join Date: Jun 2013
Location: Tokyo
Old 07-24-2013 , 23:24   how to get p model's entity id
Reply With Quote #1

how to get p models' entity index? such as p_*.mdl.
i want to use "fm_set_rendering" to make p_*.mdl glow (when i use that weapon). so i need the index of p_*.mdl. help me please,please.~
1023168216 is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 07-25-2013 , 04:54   Re: how to get p model's entity id
Reply With Quote #2

This is not possible.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
1023168216
Member
Join Date: Jun 2013
Location: Tokyo
Old 07-27-2013 , 02:53   Re: how to get p model's entity id
Reply With Quote #3

then is it possible to get the muzzle's origin? i want to make a muzzleflash effect by plugin(not by spr)i need the origin~~
Quote:
Originally Posted by Bos93 View Post
This is not possible.
1023168216 is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 07-27-2013 , 10:31   Re: how to get p model's entity id
Reply With Quote #4

Quote:
Originally Posted by 1023168216 View Post
then is it possible to get the muzzle's origin? i want to make a muzzleflash effect by plugin(not by spr)i need the origin~~
You could get the players origin, which angle the player is aiming and read what weapon is used to calculate where the muzzleflash should be.

I'm not sure if the calculations can keep up with the rate of fire. I guess you have to try.
I can try this out later if someone else doesn't.
__________________
Black Rose is offline
1023168216
Member
Join Date: Jun 2013
Location: Tokyo
Old 07-28-2013 , 06:18   Re: how to get p model's entity id
Reply With Quote #5

it seems to be a difficult way.i really dont know how to do it. o(︶︿︶)o
Quote:
Originally Posted by Black Rose View Post
You could get the players origin, which angle the player is aiming and read what weapon is used to calculate where the muzzleflash should be.

I'm not sure if the calculations can keep up with the rate of fire. I guess you have to try.
I can try this out later if someone else doesn't.
1023168216 is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 07-28-2013 , 08:30   Re: how to get p model's entity id
Reply With Quote #6

Quote:
Originally Posted by 1023168216 View Post
it seems to be a difficult way.i really dont know how to do it. o(︶︿︶)o
I'll check into it later. This will be kind of hard for me as well.
__________________
Black Rose is offline
1023168216
Member
Join Date: Jun 2013
Location: Tokyo
Old 08-01-2013 , 01:54   Re: how to get p model's entity id
Reply With Quote #7

OK o(∩_∩)o
Quote:
Originally Posted by Black Rose View Post
I'll check into it later. This will be kind of hard for me as well.
1023168216 is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 08-03-2013 , 17:35   Re: how to get p model's entity id
Reply With Quote #8

I've checked into it. It's basically impossible.

The p_ model movement stops when the Z-rotation reaches a certain point even though the v_ model is still moving, that can be calculated of course. The problem with this is that 2 entitys are needed to separate the 2 different locations. I'm not very up to date on AMXx and I don't know if you can make one of them invisible for some players and the other one invisible for the others.

The player is constantly moving. This probably can not be calculated since it's only the model animation, not the actual angles of the crosshair that is moving. You will get offsets that looks like shit.

Someone has to find out all the lenghts of weapons. Possible but time consuming.

The calculations needed for a full server where people are spraying is a lot. The server could choke and players would suffer lag spikes if that happened. There's also a chance to hit the roof of maximum number of entities.

So, what exactly do you need and for what reason? Can we solve this in a different way?
__________________
Black Rose is offline
1023168216
Member
Join Date: Jun 2013
Location: Tokyo
Old 08-05-2013 , 02:43   Re: how to get p model's entity id
Reply With Quote #9

in fact,i want to change the p_**.mdl model when player use the gun.but i dont want to use pev_weaponmodel, because i need to set pev_body(i have combined many p_**.mdl into one model),then i need the p_**.mdl 's index to set pev_body
Quote:
Originally Posted by Black Rose View Post
I've checked into it. It's basically impossible.

The p_ model movement stops when the Z-rotation reaches a certain point even though the v_ model is still moving, that can be calculated of course. The problem with this is that 2 entitys are needed to separate the 2 different locations. I'm not very up to date on AMXx and I don't know if you can make one of them invisible for some players and the other one invisible for the others.

The player is constantly moving. This probably can not be calculated since it's only the model animation, not the actual angles of the crosshair that is moving. You will get offsets that looks like shit.

Someone has to find out all the lenghts of weapons. Possible but time consuming.

The calculations needed for a full server where people are spraying is a lot. The server could choke and players would suffer lag spikes if that happened. There's also a chance to hit the roof of maximum number of entities.

So, what exactly do you need and for what reason? Can we solve this in a different way?
1023168216 is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 08-05-2013 , 08:00   Re: how to get p model's entity id
Reply With Quote #10

Ok. Set null string for pev_weaponmodel ( remove P_model ) and create info_target with your model.

Deploy - create
Holster - remove.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode