Raised This Month: $276 Target: $400
 69% 

[L4D2] Ammo Pack Deployers


Post New Thread Reply   
 
Thread Tools Display Modes
Shadowysn
Senior Member
Join Date: Sep 2015
Location: Location:
Old 09-16-2020 , 11:35   Re: [L4D2] Ammo Pack Deployers
Reply With Quote #11

I'm still getting compile errors from your plugin pertaining to 'vectors' differing from prototypes:
Code:
// C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\Unedited\ammo_pack_deployers-l4d2.sp(490) : error 181: function argument named 'vector' differs from prototype
// C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\Unedited\ammo_pack_deployers-l4d2.sp(527) : error 181: function argument named 'vector' differs from prototype
// C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\Unedited\ammo_pack_deployers-l4d2.sp(564) : error 181: function argument named 'vector' differs from prototype
But it was a simple fix, all I felt that I needed to do was add const to the beginning of vector and qangle, and it worked.
I also changed vector to vectorPos in case it clashes with a reserved keyword.

public Action L4D_OnSpawnTank(const float vectorPos[3], const float qangle[3])

public Action L4D_OnSpawnWitch(const float vectorPos[3], const float qangle[3])

public Action L4D_OnSpawnWitchBride(const float vectorPos[3], const float qangle[3])
Attached Files
File Type: sp Get Plugin or Get Source (ammo_pack_deployers-l4d2.sp - 18 views - 23.9 KB)
__________________
ragdoll spam, that is all

Steam profile, where I game, obviously.
Youtube channel, where I do Stick Death Maze animations and some other stuff.

Plugins:
1 | 2 | 3 | 4 | 5
Modified Plugins:
1 | 2

no plugin requests, sorry

Last edited by Shadowysn; 09-16-2020 at 11:37.
Shadowysn is offline
Reply


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 05:13.


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