Jump to content

[IV|WIP] CPR & Handcuff arrest


Recommended Posts

HippieCommunist

hey you folks!

 

get this beta (my first) C# script allowing the player preform a CPR and revive ANY injured ped by pressing (&holding) 'Num0'.

while wearing an LSD uniform press Num0 to arrest and cuff peds... Shifty41s_beerhatsmilie2.gif

you can now make them drop their weapons! (must hold weapon to threat!)

 

DOWNLOAD CPR&ARREST 0.1 (with cop jacket!)

the rar includes a simple texture and model change (use OpenIV or SparkIV)

 

DOWNLOAD PedToys 0.8 (script/ini)

*added keybind ini option

 

*special thanks to icon14.gif lilmcnessy icon14.gif

no more restartingta lol.gificon14.gif

 

-press 'NumPad0' to preform CPR on nearest ped, and arrest peds while wearing LSD uniform (a modest cop uniform included in the rar)

+arresting will make criminal to drop weapon (must hold weapon and be close to arrest)

+arresting ppl is the same as killing them... (fleeing ped is considered dead by the code/mission)

 

-press 'NumPad1' to **throw/shoot a tranquilizer dart at nearest ped **(depends on the weapon you're holding)

+while holding a knife press num1 to throw the knife at the nearest ped

+slight chance to loose the knife, best way to keep it is to stand close to stick it out of the corpse

 

-press multiply (*) to enable/disable the ragdoll control

+press numpad4/6/8/2 to control the nearest ragdoll's movement

+press numpad7/9 to turn nearest ragdoll left/right

+press numpad5 to make the nearest fallen ragdoll to get up

+press numpad3 to make nearest ragdoll to get inside the nearest car (must stand close)

*press numpad3 while driving a numbhead to make him get out

+press numpad+ to make nearest ragdoll jump

+press numpad- to make nearest ragdoll to shoot (if has weapon)

 

enjoy!

Edited by HippieCommunist
Link to comment
https://gtaforums.com/topic/429419-ivwip-cpr-handcuff-arrest/
Share on other sites

wear LSD uniform and hold a weapon before pressing num0  cool.gif

Where do u get that uniform?

you get it after the diamond mission.

Then that uniform is a really bad idea... u should change it-so u can use arrest even if u just started to play the game...*i lost my savegame and now im back to beginning ... well u get me ...

Link to comment
https://gtaforums.com/topic/429419-ivwip-cpr-handcuff-arrest/#findComment-1059575872
Share on other sites

HippieCommunist

you can just use the in-game-trainer...

 

sry but wearing a uniform is pretty essential for arresting peds

 

ive made it so that when you start patrol mod while holding shift inf my Contact Missions mod to switch wear the uniform ph34r.gif

 

Link to comment
https://gtaforums.com/topic/429419-ivwip-cpr-handcuff-arrest/#findComment-1059576352
Share on other sites

HippieCommunist

yes that was my point!

 

arresting a ped INSTEAD of killing them...

so when doing a vigilante mission, any cuffed ped will be considered as neutralized as he FLEEs from the scene wink.gif

that way the code disables him when hes out of range...

 

DOWNLOAD 0.2 (script w\ini only)

 

*added keybind option in ini (huge thanks to hardsty1e! icon14.gificon14.gificon14.gif )

Link to comment
https://gtaforums.com/topic/429419-ivwip-cpr-handcuff-arrest/#findComment-1059577323
Share on other sites

Hippiecommunist is at it again, nice work. cookie.gif

 

Can i ask a favour tho?

Can you make the resuscitation ability available to Niko without the need for the LSD uniform?

I always wanted to revive the innocent people I shoot which I can now, but the LSD uniform is just cramping my style.

 

Thanks.

Link to comment
https://gtaforums.com/topic/429419-ivwip-cpr-handcuff-arrest/#findComment-1059578514
Share on other sites

HippieCommunist

hah... notify.gif

 

-no model change so no crash

-1 button (w/ ini)

-criminals drop their weapons (but something tells me that 0.8 version will have that aswell)

-i dont charge money for beta.

Edited by HippieCommunist
Link to comment
https://gtaforums.com/topic/429419-ivwip-cpr-handcuff-arrest/#findComment-1059579185
Share on other sites

hah... notify.gif

 

-no model change so no crash

-1 button (w/ ini)

-criminals drop their weapons (but something tells me that 0.8 version will have that aswell)

-i dont charge money for beta.

Are u in war with MM or what? noone is charging anything man... everything is free but donators get to see "whats coming" at first... cause...they donated...and thats charity not charging! See Donation !!!

 

emm...and whats different-hmm LCPDFR is way cooler, cause has more in it... thats it-but right now-u made a really good job with CPR !!

Link to comment
https://gtaforums.com/topic/429419-ivwip-cpr-handcuff-arrest/#findComment-1059579271
Share on other sites

No war folks. I imagine HC is simply doing what my mod doesn't do, I.e a cool CPR and arresting feature, however they're both going to be in 0.80.

 

Good work on your little mod HC, has some potential. If you need help with some coding, drop me a PM.

 

MM.

Link to comment
https://gtaforums.com/topic/429419-ivwip-cpr-handcuff-arrest/#findComment-1059579625
Share on other sites

right... looks alot like a FEE to me dozingoff.gif

theres no WAR lol

 

what part of my nick dont you get?

biggrin.gif

Well i try to make myself as clear as i can... Thats not FEE, because you dont get anything for return *well you get the preview-but thats it!(that means-you get to test script as pre-beta-so if anyone find some error/bug, then it could be removed for public beta) You dont get final version of that script. And how you can charge anyone for something-when its free.... *free of charge*you dont have to pay for it*.

You suggest that beggar on the street(who is begging for money) is actually charging you , because he doest know how to work/he cant work/hes lazy/aso...... Comon man-in the end-thats just stupid!

*And dont argue with me-you cant win this one.......

 

Well good luck with development and hope to see more from you! icon14.gif

Link to comment
https://gtaforums.com/topic/429419-ivwip-cpr-handcuff-arrest/#findComment-1059579639
Share on other sites

HippieCommunist

biggrin.gif

 

boooy i hope you've earned the money you donated YOURSELF... otherwise id be feeling pretty guilty mercie_blink.gif

 

BUT THATS JUST ME sneaky2.gif

oh and i dont think you should compare MM to a begger...

 

 

No war folks. I imagine HC is simply doing what my mod doesn't do, I.e a cool CPR and arresting feature, however they're both going to be in 0.80.

 

Good work on your little mod HC, has some potential. If you need help with some coding, drop me a PM.

 

MM.

 

sure takes alot of time... yawn.gif

thanks for the generous offer but dont worry about my learning pace wink.gif

 

took me a day and a half to bring this kick-ass addition to my Contact Missions mod using C#... cool.gif

its easy to learn.

 

i literally cant wait for 0.8... this topic proves it Shifty41s_beerhatsmilie2.gif

in a way you even inspired me.

sigh.gif

thanks again

Link to comment
https://gtaforums.com/topic/429419-ivwip-cpr-handcuff-arrest/#findComment-1059579711
Share on other sites

First of all- i havent donated anything-because i cant! second-i didnt compare MM to a begger *that begger story was just to clear YOUR tought/suggestion! *And btw-MM is kinda my god(even tough that "superior" doesnt exist) and there is no way im gonna say something bad about him biggrin.gif

 

Well... i kinda stop spamming your topic from now on... because i already made my point and as i said... i would love to see more scripts from u later on wink.gif

Edited by Kutsikas15
Link to comment
https://gtaforums.com/topic/429419-ivwip-cpr-handcuff-arrest/#findComment-1059579744
Share on other sites

you games photo pls...

You don't need pictures, it works

YOu can always trust HippieCommunist

 

Great job btw, but when you arrest someone they always run off, where do they go? Or is something else supposed to happen?

 

 

*special thanks to icon14.gif lilmcnessy icon14.gif

no more restartingta lol.gif icon14.gif

 

And thanks man, its nice to have respect with others in the modding community icon14.gif

 

Link to comment
https://gtaforums.com/topic/429419-ivwip-cpr-handcuff-arrest/#findComment-1059580159
Share on other sites

HippieCommunist

you sure got my respect wink.gif

 

new release with some new features

i wanted to add more stealthy feeling so i added the ability to drug ppl with a tranquilizer darts!

and added the ability to throw a knife devil.gif

 

-press 'NumPad1' to **throw/shoot a tranquilizer dart at nearest ped **(depends on the weapon you're holding)

+while holding a knife press num1 to throw the knife at the nearest ped

+slight chance to loose the knife, best way to keep it is to stand close to stick it out of the corpse

 

DOWNLOAD 0.5(script w\ini only)

 

plz report any bugs u find wink.gif

damn need to make a clip or somn'

 

enjoy!

Edited by HippieCommunist
Link to comment
https://gtaforums.com/topic/429419-ivwip-cpr-handcuff-arrest/#findComment-1059583846
Share on other sites

HippieCommunist

yeah kinna sounds like slight fanatism there...

 

thanks bro!

 

make sure to redownload... i fixed a nasty bug causing to crash when sticking the knife... sigh.gif

*edit: damn i had to remove the sticking knife in the ped due to crash... dunno why notify.gif

 

DOWNLOAD PedToys 0.6

Edited by HippieCommunist
Link to comment
https://gtaforums.com/topic/429419-ivwip-cpr-handcuff-arrest/#findComment-1059583965
Share on other sites

 

2009-10-25 13:39:22 - Initializing ScriptHookDotNet v0.893 BETA (GTA IV version 1.0.4.0)2009-10-25 13:40:02 - Direct3D device created!2009-10-25 13:40:02 - SEARCHING FOR SCRIPTS...2009-10-25 13:40:02 - Loading scripts in Assembly 'scripts\PedToys.net' ...2009-10-25 13:40:02 -  ...found script 'Dart_Knife.Dart_Knife'!2009-10-25 13:40:02 -  ...found script 'CPR.CPR'!2009-10-25 13:40:02 - Loading dynamic scriptfile 'scripts\TestScripts.cs' ...2009-10-25 13:40:03 -  ...found script 'TestScriptCS.BindKeyExample'!2009-10-25 13:40:03 -  ...found script 'TestScriptCS.InfoAndBindExample'!2009-10-25 13:40:03 -  ...found script 'TestScriptCS.EuphoriaExample'!2009-10-25 13:40:03 -  ...found script 'TestScriptCS.AnimationExample'!2009-10-25 13:40:03 - DONE! 6 valid scripts found!2009-10-25 13:40:03 - STARTING SCRIPTS...2009-10-25 13:40:03 -  ...successfully started script 'TestScriptCS.AnimationExample'!2009-10-25 13:40:03 -  ...successfully started script 'TestScriptCS.EuphoriaExample'!2009-10-25 13:40:03 -  ...successfully started script 'TestScriptCS.InfoAndBindExample'!2009-10-25 13:40:03 -  ...successfully started script 'TestScriptCS.BindKeyExample'!2009-10-25 13:40:03 -  ...successfully started script 'CPR.CPR'!2009-10-25 13:40:03 -  ...successfully started script 'Dart_Knife.Dart_Knife'!2009-10-25 13:40:27 - Error during Tick in script 'Dart_Knife.Dart_Knife':                     System.Exception: RemoteEvent 'NativeInvoke' threw a System.AccessViolationException: Attempted to read or write protected memory during remote call to native function 'CREATE_OBJECT'!                        at unmanaged.NativeContext3.Invoke(SByte* name, NativeContext3* cxt)                        at GTA.World.CreateObject(Model Model, Vector3 Position)                        at Dart_Knife.Dart_Knife.ScriptCommunicationExample2_Tick(Object sender, EventArgs e)                        at GTA.Script.TryTick()                        at GTA.Script.DoTick()                        at GTA.ScriptThread.OnTick()

 

 

Help plz

Link to comment
https://gtaforums.com/topic/429419-ivwip-cpr-handcuff-arrest/#findComment-1059584110
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.