[ZE] EXTRA ITEM: BUNKER BUSTER LTD

Zombies/Humans Extra-Items
Post Reply
NOVA
Member
Member
Great Britain
Posts: 18
Joined: 3 years ago
Contact:

#11

Post by NOVA » 3 years ago

UPDATED !!
*USED RAHEEM METHOD for Entity Removing :)

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#12

Post by Raheem » 3 years ago

Some tips:
  1. Avoid using engine module from AMXX as much as possible, use instead ReAPI engine functions.
  2. Use ReGameDLL functions as much as possible, consider always dropping AMXX functions if there are alternatives in ReAPI.
  3. After creating the entity you must ensure it exists, my tests says that AMXX won't give wrong values after directly it's created.
    • Example:
      1. public Create_Plane(id,Float:sOrigin[3],Float:eOrigin[3])
      2. {
      3.     new i_Ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "func_breakable"));
      4.    
      5.     entity_set_model(i_Ent,MODELS[M_PLANE]);
      6.    
      7.     set_pev(i_Ent, pev_classname, C_Plane);
      8.     set_pev(i_Ent, pev_solid, SOLID_NOT);
      9.     set_pev(i_Ent, pev_movetype, MOVETYPE_NOCLIP);
      10.    
      11.     sOrigin[2] = GetMaxHeight(i_Ent,sOrigin);
      12.    
      13.     set_pev(i_Ent, pev_origin,sOrigin);
      14.     set_pev(i_Ent, pev_iuser1,id);
      15.    
      16.     set_pev(i_Ent, pev_vuser1,sOrigin);
      17.     set_pev(i_Ent, pev_vuser2,eOrigin);
      18.    
      19.     Aim_To_Target(i_Ent,eOrigin);
      20.    
      21.     fm_set_rendering(i_Ent,kRenderFxNone,0,0,0,kRenderTransAlpha,0);
      22.    
      23.     g_iEntExist[i_Ent] = 1;
      24.    
      25.     // This is Random Value , I Am Not Sure When To Remove , Bcz This Depends On Map Size :-D
      26.    
      27.     set_task(20.0,"Kill_Remove",i_Ent);
      28.     set_task(4.0,"Task_Fly",i_Ent);
      29.    
      30.     set_pev(i_Ent, pev_nextthink,get_gametime() + 4.0);
      31. }
      TO:
      1. public Create_Plane(id,Float:sOrigin[3],Float:eOrigin[3])
      2. {
      3.     #define PDATA_SAFE 2
      4.    
      5.     new i_Ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "func_breakable"));
      6.    
      7.     if (pev_valid(i_Ent) != PDATA_SAFE)
      8.         return
      9.    
      10.     entity_set_model(i_Ent,MODELS[M_PLANE]);
      11.    
      12.     set_pev(i_Ent, pev_classname, C_Plane);
      13.     set_pev(i_Ent, pev_solid, SOLID_NOT);
      14.     set_pev(i_Ent, pev_movetype, MOVETYPE_NOCLIP);
      15.    
      16.     sOrigin[2] = GetMaxHeight(i_Ent,sOrigin);
      17.    
      18.     set_pev(i_Ent, pev_origin,sOrigin);
      19.     set_pev(i_Ent, pev_iuser1,id);
      20.    
      21.     set_pev(i_Ent, pev_vuser1,sOrigin);
      22.     set_pev(i_Ent, pev_vuser2,eOrigin);
      23.    
      24.     Aim_To_Target(i_Ent,eOrigin);
      25.    
      26.     fm_set_rendering(i_Ent,kRenderFxNone,0,0,0,kRenderTransAlpha,0);
      27.    
      28.     g_iEntExist[i_Ent] = 1;
      29.    
      30.     // This is Random Value , I Am Not Sure When To Remove , Bcz This Depends On Map Size :-D
      31.    
      32.     set_task(20.0,"Kill_Remove",i_Ent);
      33.     set_task(4.0,"Task_Fly",i_Ent);
      34.    
      35.     set_pev(i_Ent, pev_nextthink,get_gametime() + 4.0);
      36. }
    And so on, after creating any entity you must ensure it exists this way.
Update these, and I'll test after.
He who fails to plan is planning to fail

NOVA
Member
Member
Great Britain
Posts: 18
Joined: 3 years ago
Contact:

#13

Post by NOVA » 3 years ago

Okay Boss :-D

deniska21233
Member
Member
Posts: 1
Joined: 3 years ago
Contact:

#14

Post by deniska21233 » 3 years ago

Hi
Please help me transfer to slot 5
Fix pls bunker buster - no fly plane sound and height plane + drop buster
Nova you Russian?

ngamerz
Member
Member
Philippines
Posts: 37
Joined: 3 years ago
Location: Philippines From South Korea

#15

Post by ngamerz » 3 years ago

deniska21233 wrote: 3 years ago Hi
Please help me transfer to slot 5
Fix pls bunker buster - no fly plane sound and height plane + drop buster
Nova you Russian?
He's indian but he live in great britain rn

Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Who is online

Users browsing this forum: No registered users and 4 guests