Raised This Month: $32 Target: $400
 8% 

Solved [L4D2] making custom chainsaw mode but not going well


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
desire worker
Junior Member
Join Date: Dec 2018
Location: Umbrella Corporation
Old 12-11-2018 , 11:04   [L4D2] making custom chainsaw mode but not going well
Reply With Quote #1

From last weekend, I`m working on my first plugin project.

Here is my aims.
  1. All AIs must be kicked in the starting of the game(ok))
  2. In beginning, survivors get chainsaw for each(ok)
  3. can refuel chainsaw by gas can(by using chainsaw refuel plugin ok)(https://forums.alliedmods.net/showthread.php?t=121983)
  4. can refuel chainsaw by ammo pile(not implemented yet)
  5. Guitar is provided instead of basic pistol when you drop chainsaw(not implemented yet)
  6. by pressing Forward key when using chainsaw, you start rush;means player become fast(doesn`t work)
  7. when pressing left, right moving key on chainsaw rush, you slightly lose speed(doesn`t work)
  8. when pressing backward key on chainsaw rush, you heavily lose speed(doesn`t work)
  9. when pressing jump key when chainsaw rush, you lose whole rush speed and got damage depending on last rushing speed(doesn`t work)
  10. when rushing, some events can cancel rush, and player got damage depending on last rushing speed(don`t know because rush function is incomplete now)
  11. Improving chainsaw attack radius slightly(not implemented yet)
  12. when player using chainsaw in the air, gravity of player is highly reduced. go to normal when land(not implemented yet)

I have searched this site and found https://forums.alliedmods.net/showthread.php?t=304476

Rushing algorithm is excerpted from above

I have tested in game, but dissatisfied with current speed.(even don`t know it working properly)

I attached current source.

Is there any way exist to improve high speed rush?

Your kindly help is highly appreciated
Attached Files
File Type: sp Get Plugin or Get Source (sayonara_chainsaw.sp - 142 views - 6.8 KB)

Last edited by desire worker; 12-15-2018 at 12:02.
desire worker is offline
lawkmlaw
Junior Member
Join Date: Mar 2016
Old 12-11-2018 , 18:54   Re: [L4D2] making custom chainsaw mode but not going well
Reply With Quote #2

same here. want to improve high speed dating speed rush

Last edited by lawkmlaw; 01-10-2019 at 04:09.
lawkmlaw is offline
desire worker
Junior Member
Join Date: Dec 2018
Location: Umbrella Corporation
Old 12-11-2018 , 19:21   Re: [L4D2] making custom chainsaw mode but not going well
Reply With Quote #3

had set player speed 200(default is 1) but not working. maybe using teleportentity is desirable?
desire worker is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-12-2018 , 11:52   Re: [L4D2] making custom chainsaw mode but not going well
Reply With Quote #4

You are mixin integer and float in speed section
Code:
ChangePlayerSpeed(client, i_curvel[client]);

void ChangePlayerSpeed(int client, float value)
{
...
And "m_flLaggedMovementValue" is mutliplier, 1.0 normal, 0.5 slow, 2.0 fast
__________________
Do not Private Message @me
Bacardi is offline
desire worker
Junior Member
Join Date: Dec 2018
Location: Umbrella Corporation
Old 12-12-2018 , 18:23   Re: [L4D2] making custom chainsaw mode but not going well
Reply With Quote #5

oh, I see. but seems like not working. setted m_flLaggedMovementValue 200 but the ingame character movement ain`t changed super fast.
desire worker is offline
desire worker
Junior Member
Join Date: Dec 2018
Location: Umbrella Corporation
Old 12-15-2018 , 12:20   Re: [L4D2] making custom chainsaw mode but not going well
Reply With Quote #6

I have completed the entire project.

but think better off discard it.

I was trying to override player velocity using 4th argument of TeleportEntity function.

TeleportEntity(entity, coordination[3], angle[3], velocity[3]);

However, I found TeleportEntity func reject high velocity like filter

Running speed in normal status was 9.3km/h, but highest performance that the function made was 7.0km/h

As a result, high speed sprint cannot be implemented in game.(High speed blink can be implemented but that was not I intended to)

but in certain way, player speed can be exceed that limit.

and that way is exactly same as the principle of bunny hops

I made code, which enable player to do bunny jump without any control.(current bhop needs some control)

(I was not intend to make bjump. but it`s doing same thing)

and 1. I`m afraid releasing 'real auto bunny' gonna make whole things hell in the game

2.It`s mechanism is quite same for bhop. cannot upload it without bhop plugin maker

for above reasons. I`ll abandon this project.

Last edited by desire worker; 12-15-2018 at 12:23.
desire worker 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 14:52.


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