Raised This Month: $ Target: $400
 0% 

a fm questition?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 10-08-2006 , 19:09   a fm questition?
Reply With Quote #1

when im setting a string, model, origin, edict, int, float, size, and vector do i use set_pev? cuz i seen some engfunc const that have like orgin and model..etc
k007 is offline
Send a message via MSN to k007
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-08-2006 , 19:43   Re: a fm questition?
Reply With Quote #2

Here is a good rule of thumb that has worked for me, if it exists as an engine function, you should use the function (like EngFunc_SetOrigin) and then set the pev[why, I don't know I've just seen a couple ppl do this) (set_pev(ent, pev_origin).

So:
Code:
engfunc(EngFunc_SetOrigin, ...); // w/e set_pev(ent, pev_origin, ...);
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 10-08-2006 , 20:11   Re: a fm questition?
Reply With Quote #3

oh ty, and one more thing whats the diffrent between engfunc_CreateEntity and engfunc_CreateNamedEntity?
edit: is point_contents and EF_PointContents are the same func expect diffrent module?

Last edited by k007; 10-08-2006 at 20:15.
k007 is offline
Send a message via MSN to k007
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-08-2006 , 20:33   Re: a fm questition?
Reply With Quote #4

I honestly don't know.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 10-08-2006 , 20:41   Re: a fm questition?
Reply With Quote #5

it's ok i got for the first one everyone use's CreateNamedEntity i don't know why so i used it and for the second one i found out there is a engfunc called EngFunc_PointContents
k007 is offline
Send a message via MSN to k007
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 10-08-2006 , 20:51   Re: a fm questition?
Reply With Quote #6

point_contents is the engine.

engfunc(EngFunc_PointContents, Float:What[3]); from fakemeta.inc or EF_PointContents(Float:What[3]) from fakemeta_stocks.inc

They both do the same exact thing except they are in different module. It very simple to distinguish what native belong to what module. Use the FuncWiki.

The difference between is that engfunc_CreateEntity just creates a entity and return the id. engfunc_CreateNamedEntity you have to specfiy what it going to be name ... ie info_target or hostage_entity.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-08-2006 , 22:19   Re: a fm questition?
Reply With Quote #7

We'll, in past experince CreateEntity you have to manually call DispatchSpawn(). In other cases it just plain didn't work for me, probably due to the fact of my poor knowledge of how HL works.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Reply


Thread Tools
Display Modes

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 04:53.


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