Raised This Month: $ Target: $400
 0% 

Sprite Solid?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Arje
Senior Member
Join Date: Apr 2020
Location: Córdoba, Argentina
Old 02-13-2022 , 01:02   Sprite Solid?
Reply With Quote #1

Hi, I wanted to know if it is possible to make the created sprite remain solid, and can make other players touch it?

PHP Code:
public fireshot(id)
{
   
// Get position from eyes
    
new aimvec[3]
    
get_user_origin(idaimvec3)
    
// Throw fire
    
fireEffects(idaimvec)
}

public 
fireEffects(idaimvec[3])
{

   
// Fire - this way it's just a sprite but it is not solid
    
message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
    
write_byte(3)
    
write_coord(aimvec[0])
    
write_coord(aimvec[1])
    
write_coord(aimvec[2])
    
write_short(gSpriteBurning)
    
write_byte(22)
    
write_byte(10)
    
write_byte(0)
    
message_end()


    
// this way is the solid sprite but it is seen with all the black background of the sprite
     
new Float:vOrigin[3]
    
vOrigin[0] += aimvec[0]
    
vOrigin[1] += aimvec[1]
    
vOrigin[2] += 30.0
    
    
new amaterasuaowner id
    
new amaterasu create_entity("info_target")
    
entity_set_string(amaterasuEV_SZ_classname"amaterasu"
    
entity_set_model(amaterasu"sprites/shmod/blue_flame.spr")     
    
entity_set_size(amaterasuFloat:{-2.5, -2.5, -1.5}, Float:{2.52.51.5})
    
entity_set_edict(amaterasuEV_ENT_owneramaterasuaowner)
    
entity_set_int(amaterasuEV_INT_solid2)
    
entity_set_int(amaterasuEV_INT_movetype6)
    
entity_set_vector(amaterasuEV_VEC_originvOrigin)


Arje is offline
 


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 11:35.


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