Raised This Month: $ Target: $400
 0% 

need some new natives etc


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 06-20-2004 , 16:00   need some new natives etc
Reply With Quote #1

I need to know what the following have been changed to thanx :
  • get_entity_origin =

    get_user_velocity =

    set_user_velocity

and any idea how to fix these?
  • include\engine.inc(75) : warning 219: local variable "entity" shadows a variable at a preceding level
    include\engine.inc(125) : warning 219: local variable "entity" shadows a variable at a preceding level
    include\engine_stocks.inc(197) : warning 219: local variable "entity" shadows a variable at a preceding level
    include\engine_stocks.inc(204) : warning 219: local variable "entity" shadows a variable at a preceding level
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 06-20-2004 , 16:10  
Reply With Quote #2

get_entity_origin: Use entity_get_vector(ent, EV_VEC_origin, output);
MessageBlock: set_msg_block(msg, blocktype); Blocktypes can be:
Code:
#define BLOCK_NOT       0 #define BLOCK_ONCE      1 #define BLOCK_SET       2
(engine_const.inc)
__________________
hello, i am pm
PM is offline
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 06-20-2004 , 16:15  
Reply With Quote #3

thanx PM, found the message block one in vexd. now got a couple more. added to first post.
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 06-20-2004 , 16:29  
Reply With Quote #4

Quote:
Originally Posted by PM
get_entity_origin: Use entity_get_vector(ent, EV_VEC_origin, output);
ok im sorry not getting this so I would implement that with this how?

Code:
new korigin[3]
	get_entity_origin(weapon,korigin)
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 06-20-2004 , 16:30  
Reply With Quote #5

You can't get the origin of the weapon like that.. you need to find_ent_by_something to find all the weapons of that (use by model) then you can do that
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 06-20-2004 , 16:32  
Reply With Quote #6

Quote:
Originally Posted by devicenull
You can't get the origin of the weapon like that.. you need to find_ent_by_something to find all the weapons of that (use by model) then you can do that
thanx dev btw can I get some support via Pm pleeeze ;). and any thing from second part of the first post.
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 06-20-2004 , 16:35  
Reply With Quote #7

for those warnings, change the variable named entity to something else
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 06-20-2004 , 16:45  
Reply With Quote #8

but its not in the plugin its in the include files..
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 06-20-2004 , 17:52  
Reply With Quote #9

do you have something like
Code:
new entity #include....
Because that would make it seem like the error's in the include files, but if you switch it around it will appear to be in that plugin
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 06-20-2004 , 17:57  
Reply With Quote #10

thats the weird part I cant find any strings like :
Code:
new entity
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
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 14:42.


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