[SNIPPET][L4D2] Laser Sight & Explosive Barrel Creation
I thought I would post some handy snippets for Left 4 Dead 2.
Creating an explosive Barrel: PHP Code:
Here's how: PHP Code:
|
Re: [SNIPPET][L4D2] Laser Sight & Explosive Barrel Creation
thx!
|
Re: [SNIPPET][L4D2] Laser Sight & Explosive Barrel Creation
Interesting that the ent stored when creating the laser upgrade box cannot be used later to remove it - its reported as an invalid entity/edict. Anyone know why upgrade spawns behave this way? Anyone know of a way to delete/remove the laser box once spawned?
|
Re: [SNIPPET][L4D2] Laser Sight & Explosive Barrel Creation
The invalid ent problem might have something to do with why teleport entity doesn't work on it.
|
Re: [SNIPPET][L4D2] Laser Sight & Explosive Barrel Creation
Sorry for revive the thread , but i have a problem with this.
I have made a this simple plugin. Code:
But , doens't make the barrel , what is the problem ? |
Re: [SNIPPET][L4D2] Laser Sight & Explosive Barrel Creation
Quote:
|
Re: [SNIPPET][L4D2] Laser Sight & Explosive Barrel Creation
PHP Code:
0 0 0 And it's easier to create a command then to hook say. Also at the top of the plugin you need #include <sdktools> |
Re: [SNIPPET][L4D2] Laser Sight & Explosive Barrel Creation
Oh , i forgot the include , thanks .
When you say ' You didn't Teleport the barrel anywhere ' , i need put PHP Code:
|
Re: [SNIPPET][L4D2] Laser Sight & Explosive Barrel Creation
The code you posted is only to be used on Laser Sight boxes, unless you fee like it. Though What you need to do is this.
After DispatchSpawn(ent); PHP Code:
public Action:Get_Sayed( client, args ); |
Re: [SNIPPET][L4D2] Laser Sight & Explosive Barrel Creation
Oh , yeah , now works perfectly , thanks you very much .
One cuestion , have diference to change between client & index ? |
Re: [SNIPPET][L4D2] Laser Sight & Explosive Barrel Creation
I'm not sure if it'll break the command, but it never hurts to leave it as client.
|
Re: [SNIPPET][L4D2] Laser Sight & Explosive Barrel Creation
Ok , i have this error:
Code:
L 01/15/2011 - 09:23:05: [SM] Native "GetClientEyePosition" reported: Invalid client index 0Code:
Another cuestion , i should always hook say to get the command example /barril ? |
Re: [SNIPPET][L4D2] Laser Sight & Explosive Barrel Creation
You can't run that command via rcon or serverconsole. Do it ingame!
You should use PHP Code:
|
Re: [SNIPPET][L4D2] Laser Sight & Explosive Barrel Creation
Quote:
|
Re: [SNIPPET][L4D2] Laser Sight & Explosive Barrel Creation
how save laser sights box in stripper?
tried like this, but to no avail { "origin" "1618 76 416" "angles" "0 39 0" "model" "models/w_models/Weapons/w_laser_sights.mdl" "classname" "upgrade_laser_sight" } and { "origin" "1618 76 416" "angles" "0 39 0" "model" "models/w_models/Weapons/w_laser_sights.mdl" "classname" "upgrade_spawn" "count" "1" "laser_sight" "1" } |
Re: [SNIPPET][L4D2] Laser Sight & Explosive Barrel Creation
Do a stripper_dump command on a map that has laser sights then go to the txt file and find a code block that has upgrade_spawn. Once you do that set the two keys that determine whether it's incendiary/explosive ammo to 0 and make sure the laser_sight key is 1. I don't have a code block available to show you, so you'll have to do this.
|
Re: [SNIPPET][L4D2] Laser Sight & Explosive Barrel Creation
Quote:
|
| All times are GMT -4. The time now is 18:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.