AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   need some new natives etc (https://forums.alliedmods.net/showthread.php?t=2918)

kingpin 06-20-2004 16:00

need some new natives etc
 
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

PM 06-20-2004 16:10

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)

kingpin 06-20-2004 16:15

thanx PM, found the message block one in vexd. now got a couple more. added to first post.

kingpin 06-20-2004 16:29

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)


devicenull 06-20-2004 16:30

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

kingpin 06-20-2004 16:32

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.

devicenull 06-20-2004 16:35

for those warnings, change the variable named entity to something else :)

kingpin 06-20-2004 16:45

but its not in the plugin its in the include files..

devicenull 06-20-2004 17:52

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 :)

kingpin 06-20-2004 17:57

thats the weird part I cant find any strings like :
Code:

new entity


All times are GMT -4. The time now is 14:42.

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