Raised This Month: $51 Target: $400
 12% 

Police! Put your Hands Up!


Post New Thread Reply   
 
Thread Tools Display Modes
anssik
Senior Member
Join Date: May 2006
Location: Suomi Finland Perkele
Old 10-20-2006 , 03:33   Re: Police! Put your Hands Up!
Reply With Quote #11

Yeah I have an idea on my head right now...

That when police shout F3, within the range defined by cvar there's a chance that terrorists will drop their weapons.

Wonderful idea, Satan. But I'm not too sure if I can make this. But I'll try.

NemesisDelta, I will make that spamfilter now.
__________________
anssik is offline
NemesisDelta
Senior Member
Join Date: Jul 2006
Location: Germany/Hessen/Kassel
Old 10-20-2006 , 03:58   Re: Police! Put your Hands Up!
Reply With Quote #12

Cant wait for it...nice nice nice
__________________
NemesisDelta is offline
Send a message via ICQ to NemesisDelta
anssik
Senior Member
Join Date: May 2006
Location: Suomi Finland Perkele
Old 10-20-2006 , 04:15   Re: Police! Put your Hands Up!
Reply With Quote #13

Okay, the spamfilter is done.

#define SPAM_TIME 3.0

Edit that to change the time before is possible to shout police again.

Will try to make that terrorist drop their weapons stuff, but it can take time, maybe lots of it. Any help with it is highly appreciated.
__________________
anssik is offline
NemesisDelta
Senior Member
Join Date: Jul 2006
Location: Germany/Hessen/Kassel
Old 10-20-2006 , 04:44   Re: Police! Put your Hands Up!
Reply With Quote #14

+KARMA
__________________
NemesisDelta is offline
Send a message via ICQ to NemesisDelta
DarkSnow
Senior Member
Join Date: Oct 2005
Location: 127.0.0.1
Old 10-20-2006 , 11:18   Re: Police! Put your Hands Up!
Reply With Quote #15

Quote:
Originally Posted by anssik View Post
Okay, the spamfilter is done.

#define SPAM_TIME 3.0
Im not trying to be rude, but you prolly should make a cvar for it instead.

Quote:
Originally Posted by anssik View Post
Any help with it is highly appreciated.
Code:
Description
strip_user_weapons - Strips all weapons from user

Syntax
strip_user_weapons ( index )

Type
Native

Notes
Warning ! Don't use this function IN ResetHUD event. This will probably crash server. To fix this use set_task with time more or equal to 0.1 sec.
Requires fun module:
Code:
#include <fun>
__________________

Last edited by DarkSnow; 10-20-2006 at 11:20.
DarkSnow is offline
Send a message via MSN to DarkSnow
anssik
Senior Member
Join Date: May 2006
Location: Suomi Finland Perkele
Old 10-20-2006 , 11:26   Re: Police! Put your Hands Up!
Reply With Quote #16

Yeah thanks for the strip_user_weapons, I didn't know that exists and thought of using a lot more complicated way to do it.

Well, I tried to make a cvar but didn't succeed. With more work I've could done it, but I thought it's not worth it since I don't think the filter time have to be changed often.

About that drop weapons stuff, I already have the idea in my head how to do it, and when I find some free time for it I'll do it.
__________________
anssik is offline
DarkSnow
Senior Member
Join Date: Oct 2005
Location: 127.0.0.1
Old 10-20-2006 , 12:46   Re: Police! Put your Hands Up!
Reply With Quote #17

You could always use engine/fakemeta instead, but why make things more complicated then they are?

A hint on the drop weapon thingy:
Code:
#define MAX_DIST 350 public trace_viewent(id) {   new index, bodypart, distance = 99999;   call_scream_police_stuff_function(id)   get_user_aiming(id, index, bodypart, distance);       if (is_user_connected(index) && is_user_alive(index))     if (distance < MAX_DIST)       strip_user_weapons(index) }

Basicly it runs a traceline from player(id), and if it hits an player within the distance of MAX_DIST, it stripps the weapons.

It's just a suggestion, cheers
__________________
DarkSnow is offline
Send a message via MSN to DarkSnow
anssik
Senior Member
Join Date: May 2006
Location: Suomi Finland Perkele
Old 10-21-2006 , 04:41   Re: Police! Put your Hands Up!
Reply With Quote #18

Yeah thanks a lot, +karma for you for your help.

But your doing it that you must aim the victim. I was thinking of doing it that you don't have to aim, just everyone on the radius will have a chance to drop their weapons.

But I know already how to do it. I will use get_entity_distance to calculate distance between victim and shouter. And with loop I will run it for every T. Then I'm gonna use random_num to make the chance thing.
__________________

Last edited by anssik; 10-21-2006 at 04:43.
anssik is offline
bigman11
Member
Join Date: Jun 2006
Location: Computer
Old 01-13-2007 , 01:36   Re: Police! Put your Hands Up!
Reply With Quote #19

im a noob wat do i do with the .rar
__________________
bigman11 is offline
Send a message via MSN to bigman11
Inn3r
New Member
Join Date: Feb 2007
Old 02-07-2007 , 06:38   Re: Police! Put your Hands Up!
Reply With Quote #20

bigman11 vbmenu_register("postmenu_426550", true); the rar file is similar to a zip file, to open it go here www.winrar.com



anissk, for you how easy would it be to make a plugin using the plugin as it is so far minus the strip weapons part but then the plugin does the following:

- When CT's spot a T they can use the 'Get down' command
- The Terrorist that is spotted and told to get down gets a menu come up saying:

Drop weapons and surrender?
1. Yes
2. No

-The T's can answer/be asked this once per round unless they say 'No' (read below)

- If they select No play continues as normal and they can be 're asked' to drop weapons (cvar for minimum time before they can be re asked, 5,10 etc) until someone wins and the CT that yelled 'Get Down' at the T get a sound played such as 'Suspect is not complying or something similar.

- If they say yes they loose all weapons and armour (cvar for amour, 1 = yes, 2 = no) and are forced to crouch PLUS buried ankle high to stop them running away and glow blue or possibly have a small blue sprite above their head until the end of the round to indicate to other CT's they have given up and it plays the sound suspect complied to CT's.

-The CT that gets them to surrender gets 1 kill for it, if a T is killed after surrendering the CT who kills them looses a Kill.

-If a T goes up to the surrendered T and press the use key then the T is free again and gets their weapons back (cvar 1 they do get their weapons back, cvar 2 they dont, cvar 3 they get the same as the 'rescuing' T) and it plays the sound to all CT's Suspect running but the blue dot remains above the T's head. The T that performs the rescue gets +1 kill
Inn3r is offline
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 13:58.


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