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

[SMA]HandShake MedicKit & VibrateOnDamage 4 Sven Coop


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Scrooge2029
Junior Member
Join Date: Dec 2020
Old 01-01-2021 , 10:53   [SMA]HandShake MedicKit & VibrateOnDamage 4 Sven Coop
Reply With Quote #1

Basically use socket to communicate with Android cellphone
Shake phone to recover health, the harder you shake, the more health you will recover
Phone vibrates when the player is taking damage

Issue:
1.It cannot be used with dedicated server, since socket clients are opened on the (dedicated) server, it's hard to make the socket server on a cellphone from LAN of client to listen to the socket client on the dedicated server, although I wrote vars for supporting multiplayers in the future...
2.Normally the sensor of phone will sleep after the screen is locked, so the acceleration will remain still after the screen of cellphone is locked, this will happen a while after the locking operation, but not immediately.
3.In a word, these junky code are just for reference rather than practical gameplaying, use this plugin/Android app at your own risk

Plugin:https://github.com/AlucardNosferatu/...20TCP/cpcc.sma

Android SocketServer:
https://github.com/AlucardNosferatu/...edCrowbar_CPCC

Reference:
https://forums.alliedmods.net/showthread.php?t=329181

The Attachment:
A Video showing the gameplay with HandShake MedicKit
Attached Files
File Type: zip 1609422717828~1.zip (3.90 MB, 131 views)

Last edited by Scrooge2029; 01-01-2021 at 11:08. Reason: Revision
Scrooge2029 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 17:56.


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