Raised This Month: $ Target: $400
 0% 

Remove origins data from file


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 09-03-2009 , 10:20   Re: Remove origins data from file
Reply With Quote #1

Quote:
Remove entities and saved which ones are removed to a file?
Yes , removing aimed entity and aimed entitie's origins from file, which was saved.
And it won't delete aimed entitie's origins data from file.

xPaw: Yes it doesn't ,but I don't understand why ? :/
__________________

Last edited by xbatista; 09-03-2009 at 12:55.
xbatista is offline
Send a message via Skype™ to xbatista
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 09-03-2009 , 14:15   Re: Remove origins data from file
Reply With Quote #2

Problem was when I'm creating entity :/
PHP Code:
entity_set_int(item_entEV_INT_movetypeMOVETYPE_TOSS)
drop_to_floor(item_ent
That was a problem, cuz it drops to floor and entity is in unknown place, how to fix that MOVETYPE_TOSS problem?

I need to set it somehow, without gravity + it must be on the floor
__________________

Last edited by xbatista; 09-03-2009 at 14:26.
xbatista is offline
Send a message via Skype™ to xbatista
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-03-2009 , 15:02   Re: Remove origins data from file
Reply With Quote #3

Try using drop_to_floor( ) without setting the movetype.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 09-04-2009 , 02:40   Re: Remove origins data from file
Reply With Quote #4

It won't drop to floor without MOVETYPE_TOSS
__________________
xbatista is offline
Send a message via Skype™ to xbatista
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 09-04-2009 , 07:16   Re: Remove origins data from file
Reply With Quote #5

Quote:
Originally Posted by xbatista View Post
It won't drop to floor without MOVETYPE_TOSS
Yes it will
__________________
xPaw is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 09-04-2009 , 07:29   Re: Remove origins data from file
Reply With Quote #6

Quote:
Yes it will
Not it not, I've just set entitie's origin on where am I standing and it just floats on the air(also player stuck on that ent origin)...

PHP Code:
// Create entity
new Origin[3]
get_user_origin(idOrigin0)
Create_Items(Origin)

// Function
Create_Items(Origin[3])
{
    new 
Float:flOrigin[3]
    
IVecFVec(OriginflOrigin)
    
//    new Float:fGlowColors[3] = {255.0, 0.0, 20.0}
    
new item_ent create_entity("info_target")
    if(
pev_valid(item_ent))
    {
        
entity_set_string(item_entEV_SZ_classname"Item")
                
        
entity_set_int(item_entEV_INT_solidSOLID_BBOX)
        
entity_set_int(item_entEV_ENT_owner0)
//        entity_set_int(item_ent, EV_INT_renderfx, kRenderFxGlowShell)
//        entity_set_vector(item_ent, EV_VEC_rendercolor, fGlowColors)

        
drop_to_floor(item_ent)
        
entity_set_vector(item_entEV_VEC_originflOrigin)
        
        
entity_set_model(item_entg_w_item)
        
entity_set_size(item_entFloat:{-2.5, -2.5, -1.5}, Float:{2.52.51.5})

    }

__________________
xbatista is offline
Send a message via Skype™ to xbatista
williamjems
New Member
Join Date: Sep 2009
Old 09-04-2009 , 07:39   Re: Remove origins data from file
Reply With Quote #7

Hi xbatista.

I think your problem is in your script. You have heard about the JavaScript its really good scripting language. Just try to write your script in JavaScript. May be your problem would be solved.
__________________

Last edited by williamjems; 09-08-2009 at 03:16.
williamjems is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 09-04-2009 , 07:44   Re: Remove origins data from file
Reply With Quote #8

Hi william.

Quote:
Hi xbatista.

I think your problem was in your script. You have heard about the JavaScript its really good scripting language. Just try to write your script in JavaScript. May be your problem would be solve. Hope it works. Thank you.
LOL you joking me right?
I will not start learning javascript and how the hell it helps me...


NEVERMIND, CLOSE THIS THREAD I WILL NOT USE FOR NOW DELETE ENTITY BY AIM, it's buggy.
__________________

Last edited by xbatista; 09-04-2009 at 10:55.
xbatista is offline
Send a message via Skype™ to xbatista
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 09-04-2009 , 12:03   Re: Remove origins data from file
Reply With Quote #9

Quote:
Originally Posted by xbatista View Post
Hi william.


LOL you joking me right?
I will not start learning javascript and how the hell it helps me...


NEVERMIND, CLOSE THIS THREAD I WILL NOT USE FOR NOW DELETE ENTITY BY AIM, it's buggy.
It can be done, you must use traceline.
And after that you must use tracemodel. It should work.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 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 15:13.


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