AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Dropping bomb on knive hit (https://forums.alliedmods.net/showthread.php?t=3158)

drumamn4ever 06-28-2004 05:27

Dropping bomb on knive hit
 
I'm having a problem.. i need the player that gets hit with a knive to drop the bomb if they are carrying it... or make them frozen for 2 seconds if they dont have it.... Please someone help... this one is eating me

sanaell 06-28-2004 06:45

Re: Dropping bomb on knive hit
 
Quote:

Originally Posted by drumamn4ever
I'm having a problem.. i need the player that gets hit with a knive to drop the bomb if they are carrying it... or make them frozen for 2 seconds if they dont have it.... Please someone help... this one is eating me

try to look on the Warcraft 3 Ft code for freeze someone :)

(BASH power) or (entrangling roots)

Freecode 06-28-2004 06:59

use damage event to see who gets hits and get the attackers weapon.
if weapon = knife then continue
if player has bomb select it and drop it otherwise set his speed to 0 and change it back after 2 seconds using set_task.

drumamn4ever 06-28-2004 19:25

thanks guyz :). This is for the CS Football thing... make it easy to enforce rules :)

T(+)rget 06-30-2004 06:09

Quote:

Originally Posted by drumamn4ever
This is for the CS Football thing...

Hope this isn't a clone of SoccerMod :o


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

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