Rules FAQ Members List Search Register Login

 Raised This Month: \$52 Target: \$400 13%

 Thread Tools Display Modes
Author Message
Mixtaz
Junior Member
Join Date: Sep 2017
 09-06-2018 , 06:40   TE_MODEL as entity #1 I have this simple piece of code PHP Code: ``` public chickenthrow(id[]) {                 if(is_user_alive(id[0]) && chickens[id[0]] > 0)     {         new vec[3];         new aimvec[3];         new velocityvec[3];         new length;         new speed = 800;         get_user_origin(id[0],vec);         get_user_origin(id[0],aimvec,2);              velocityvec[0]=aimvec[0]-vec[0];         velocityvec[1]=aimvec[1]-vec[1];         velocityvec[2]=aimvec[2]-vec[2];              length=sqrt(velocityvec[0]*velocityvec[0]+velocityvec[1]*velocityvec[1]+velocityvec[2]*velocityvec[2]);              velocityvec[0]=velocityvec[0]*speed/length;         velocityvec[1]=velocityvec[1]*speed/length;         velocityvec[2]=velocityvec[2]*speed/length;              // TE_MODEL from HL-SDK common/const.h          message_begin(MSG_BROADCAST,SVC_TEMPENTITY);         write_byte(106);         // TE_MODEL index         write_coord(vec[0]);         // location coords         write_coord(vec[1]);         write_coord(vec[2]+20);         write_coord(velocityvec[0]);     // speed coords - stupid, but thats how its done         write_coord(velocityvec[1]);         write_coord(velocityvec[2]+100);         write_angle (0);         // yaw         write_short (mdlChicken);     // model          write_byte (2);             // sound         write_byte (255);         // duration          message_end();     }         chickens[id[0]]-- }  ``` And what I want to do is to make the thrown chickens an entity and make them explode afterwards. Well most importantly making them an entity, cause I can handle the second task.
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
 09-06-2018 , 07:05   Re: TE_MODEL as entity #2 SVC_TEMPENTITY cannot be converted to actual entity. __________________ [MOD] CS Weapon Mod V1.7.1 [MM] MetaMod-C V1.0 [MOD] CS NPC Mod (5%) Probably Left AM
Mixtaz
Junior Member
Join Date: Sep 2017
 09-06-2018 , 07:57   Re: TE_MODEL as entity #3 That's what I thought. Is there anyway I can work this around and actually use those tempentities for further purposes? As of now, they just disapear after certain amount of time, what if I want it to do something else with them?
Natsheh
Veteran Member
Join Date: Sep 2012
 09-06-2018 , 07:57   Re: TE_MODEL as entity #4 His request is achievable by using that message and message explode It depends on when you want them to be explode. __________________ @Jailbreak Main Mod v2.6.5 100% @User Tag Prefix 100% done ! @Mystery Box 100% done ! @VIP System 100% done ! Last edited by Natsheh; 09-06-2018 at 08:00.
Mixtaz
Junior Member
Join Date: Sep 2017
 09-06-2018 , 10:17   Re: TE_MODEL as entity #5 @Natseh - as soon as they hit the ground (in other words when their "ent" is FL_GROUND)
Natsheh
Veteran Member
Join Date: Sep 2012
09-06-2018 , 10:39   Re: TE_MODEL as entity
#6

Quote:
 Originally Posted by Mixtaz @Natseh - as soon as they hit the ground (in other words when their "ent" is FL_GROUND)
Then you need to create an entity for that.
__________________
@Jailbreak Main Mod v2.6.5 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !
Mixtaz
Junior Member
Join Date: Sep 2017
09-06-2018 , 11:01   Re: TE_MODEL as entity
#7

Quote:
 Originally Posted by Ghosted SVC_TEMPENTITY cannot be converted to actual entity.
This was my plan, but according to Ghosted's post it seems to be impossible.

 Thread Tools Display Modes Linear Mode

 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 Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Server Discussion     Source Servers (SRCDS)     HL1 Servers (HLDS) AMX Mod X     News     Bug Reports     General     Off-Topic     Plugins         Suggestions / Requests         Approved Plugins         New Plugin Submissions         Unapproved/Old Plugins         Translation Request         High-Traffic Plugins             GunGame             UAIO (Ultimate All-In-One Plugin)             xREDIRECT             CSDM             AMX Super             RuneMod             Zombie Plague Mod             SuperHero Mod                 News                 Tech Support                 Scripting Help                 Off-Topic / General Chat                 Heroes                     Suggestions / Requests                     Approved Heroes                     New Submissions                     Unapproved/Old Heroes                         Module Heroes                     SuperHero Mod Stats - By 123                 (OLD) Bug Reports     Scripting         Scripting Help         Code Snippets/Tutorials         Module Coding     Donor Access SourceMod     News     General     Plugins         Plugins         Unapproved Plugins         Plugin/Gameplay Ideas and Requests         High-Traffic Plugins             SourceMod Anti-Cheat             Zombie:Reloaded             SourceBans / SourceBans++             VSH / Freak Fortress             Store             SM_Hosties             HLstatsX:CE     Scripting     Extensions     Snippets and Tutorials     Donor Access     Metamod: Source         Metamod:Source Plugins         Metamod:Source Questions         Coding MM:S Plugins & SM Extensions Hosted Stuff     Asherkin's Plugins         TFDodgeball         TF2Items         SteamTools     Bail's Plugins         CSDM         CS:S DM Off-Topic & Trash     Off-Topic     Trash

All times are GMT -4. The time now is 04:47.

 DMCA - Archive - Top