Raised This Month: $51 Target: $400
 12% 

Changing weapon models (Extended)


Post New Thread Reply   
 
Thread Tools Display Modes
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 09-22-2006 , 02:31   Re: Changing weapon models (Extended)
Reply With Quote #41

PHP Code:
  if(!equali(modelOLD_HE_MODEL) || !equal(modelOLD_SG_MODEL) || !equal(modelOLD_FB_MODEL)) 
   return 
FMRES_IGNORED
   
  
else 
remove
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 09-22-2006 , 10:04   Re: Changing weapon models (Extended)
Reply With Quote #42

ok thanks
k007 is offline
Send a message via MSN to k007
Zenith77
Veteran Member
Join Date: Aug 2005
Old 09-22-2006 , 12:28   Re: Changing weapon models (Extended)
Reply With Quote #43

When I'm get the time, I am going to research grenade entities, because they're has to be some way the game knows what type of grenade they are, and not by checking the model like plugins do.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 09-23-2006 , 00:12   Re: Changing weapon models (Extended)
Reply With Quote #44

1) If you don't have time to test, then why are you doing it?
2) It would work but it is very inefficient.
3) Hello [/CODE]PM
4) HAPPY APPLE DAY!
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 09-23-2006 , 00:29   Re: Changing weapon models (Extended)
Reply With Quote #45

could soneone show me how do i add an index to that forward do i just do.
Code:
new id = index
?
edit: it didn't work now i used owner as an id as zenith told me, but i don't know if it's right/save to use owner as an id

Last edited by k007; 09-23-2006 at 15:26.
k007 is offline
Send a message via MSN to k007
Zenith77
Veteran Member
Join Date: Aug 2005
Old 09-27-2006 , 12:30   Re: Changing weapon models (Extended)
Reply With Quote #46

Yes, store the id of the owner of the grenade in pev_owner, the whole point is to keep track of data. There really is no other way, unless you want to be stupid, and create a 500 (default) cell array that keeps tracks of every entities owner (atleasy grenades). The latter is simply not an option.

Code:
set_pev(myEnt, pev_owner, idOrWhatever);
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 09-27-2006 , 12:57   Re: Changing weapon models (Extended)
Reply With Quote #47

Quote:
Originally Posted by Zenith77
There really is no other way
what about
set_pev(Ent, pev_euser1, ID)
or
set_pev(Ent, pev_euser2, ID)
or
set_pev(Ent, pev_euser3, ID)
or
set_pev(Ent, pev_euser4, ID)
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 09-27-2006 , 17:30   Re: Changing weapon models (Extended)
Reply With Quote #48

I'm just not going to say anything, hopefully somebody else will see the stupidity in your post.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 09-27-2006 , 20:35   Re: Changing weapon models (Extended)
Reply With Quote #49

zenith don't start freaking out pev_owner works amazing for me :0
k007 is offline
Send a message via MSN to k007
Zenith77
Veteran Member
Join Date: Aug 2005
Old 09-27-2006 , 21:49   Re: Changing weapon models (Extended)
Reply With Quote #50

No, he didn't even, I don't know what, and then went on to correct me. I don't take that very well.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
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 08:22.


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