Raised This Month: $32 Target: $400
 8% 

[L4D2 & L4D] Airdrop


Post New Thread Reply   
 
Thread Tools Display Modes
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 07-01-2019 , 02:52   Re: [L4D2] Airdrop
Reply With Quote #31

Quote:
Originally Posted by sonic155 View Post
this is a odd question but where do I place "airplane_parachute" files in?
models/props_crates/ (vtx, mdl, phy, vvd, bz2)
materials/airdrop/ (vmt, vtf, bz2)
BHaType is offline
Send a message via AIM to BHaType
sonic155
Senior Member
Join Date: Mar 2019
Old 07-01-2019 , 03:37   Re: [L4D2] Airdrop
Reply With Quote #32

thank you it was bring up a Error before but now its showing the parachutes now
sonic155 is offline
disawar1
AlliedModders Donor
Join Date: Aug 2011
Location: Russian
Old 07-01-2019 , 10:38   Re: [L4D2] Airdrop
Reply With Quote #33

Interesting idea.

Here are some coding suggestion for self-improvement.
PHP Code:
// If a variable is not assigned upon declaration, it will be set to 0.
float vAng[3];
vAng[0] = 89.0vAng[1] = 0.0vAng[2] = 0.0;

// Do this:
float vAng[3];
vAng[0] = 89.0
PHP Code:
// The condition statement - checks whether the next loop should run, including the first one. Therefore GetConVarInt is called every loop iteration.
for(int i 0GetConVarInt(cCountAirdrops); i++)

// Do this:
int count GetConVarInt(cCountAirdrops);
for(
int icounti++) 
PHP Code:
// Sometimes a teleport after a spawn leads to sad consequences. The entity spawns at zero coordinates and teleports to the given coordinate. 
// TeleportEntity means the entity traveling through the world and collide with other entities. Something weird can happen at this short time and server crashes.
DispatchSpawn(entity);
AcceptEntityInput(entity"TurnOn");
TeleportEntity(entityvOriginvAnglesNULL_VECTOR);

// I recommend to teleport before spawn. You can also use DispatchKeyValueVector to set origin/angles.
TeleportEntity(entityvOriginvAnglesNULL_VECTOR);
DispatchSpawn(entity);
AcceptEntityInput(entity"TurnOn"); 
Sometimes info_particle_system entity may still exist and be visible, even if you kill it. Stringtable method is the better way to precache it. The particle stringtable has "ParticleEffectNames" name.
__________________

Last edited by disawar1; 07-01-2019 at 10:51.
disawar1 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 07-01-2019 , 11:20   Re: [L4D2] Airdrop
Reply With Quote #34

Quote:
Originally Posted by disawar1 View Post
PHP Code:
// I recommend to teleport before spawn. You can also use DispatchKeyValueVector to set origin/angles.
TeleportEntity(entityvOriginvAnglesNULL_VECTOR);
DispatchSpawn(entity); 
Yep: https://forums.alliedmods.net/showpo...4&postcount=17
__________________

Last edited by Silvers; 07-01-2019 at 11:21.
Silvers is offline
theproperson
Member
Join Date: Feb 2017
Old 07-01-2019 , 15:51   Re: [L4D2] Airdrop
Reply With Quote #35

Cvar to turn messages on / off ?
theproperson is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 07-02-2019 , 01:35   Re: [L4D2] Airdrop
Reply With Quote #36

Quote:
Originally Posted by disawar1 View Post
Interesting idea.
Spoiler
Thanks for the corrections!
I didn't know much of it.

Last edited by BHaType; 07-02-2019 at 01:37.
BHaType is offline
Send a message via AIM to BHaType
phoenix0001
Senior Member
Join Date: Apr 2010
Location: China
Old 07-02-2019 , 12:54   Re: [L4D2] Airdrop
Reply With Quote #37

You forgot to upload the plugin.
__________________
I like this BBS sharing of spirit

I come from China, my English is poor
phoenix0001 is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 07-02-2019 , 13:23   Re: [L4D2] Airdrop
Reply With Quote #38

Quote:
Originally Posted by phoenix0001 View Post
You forgot to upload the plugin.
The plugin has a very serious error, and I'm fixing it
BHaType is offline
Send a message via AIM to BHaType
phoenix0001
Senior Member
Join Date: Apr 2010
Location: China
Old 07-02-2019 , 13:37   Re: [L4D2] Airdrop
Reply With Quote #39

Airdrop_open_string" , "Hehe boi"
Hehe boi,Unable to use Chinese.
__________________
I like this BBS sharing of spirit

I come from China, my English is poor
phoenix0001 is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 07-02-2019 , 14:24   Re: [L4D2] Airdrop
Reply With Quote #40

Updated
BHaType is offline
Send a message via AIM to BHaType
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 09:03.


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